From 2184a7cc9f08aafc1f8feb930ad7aec6beaaa05e Mon Sep 17 00:00:00 2001 From: unodgs Date: Tue, 28 Sep 2010 21:16:55 +0000 Subject: [PATCH] GridCtrl: fixed FindCol(int id) and FindRow(int id), id was incorrectly shifted by fixed column/rows count git-svn-id: svn://ultimatepp.org/upp/trunk@2725 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/GridCtrl/GridCtrl.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/uppsrc/GridCtrl/GridCtrl.cpp b/uppsrc/GridCtrl/GridCtrl.cpp index be2c65762..0f79a0c7c 100644 --- a/uppsrc/GridCtrl/GridCtrl.cpp +++ b/uppsrc/GridCtrl/GridCtrl.cpp @@ -5885,7 +5885,6 @@ int GridCtrl::GetRowUId() const int GridCtrl::FindCol(int id) const { - id += fixed_cols; for(int i = fixed_cols; i < total_cols; i++) if(hitems[i].id == id) return i - fixed_cols; @@ -5910,7 +5909,6 @@ int GridCtrl::FindCol(const String& s) const int GridCtrl::FindRow(int id) const { - id += fixed_rows; for(int i = fixed_rows; i < total_rows; i++) if(vitems[i].id == id) return i - fixed_rows;