[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kspread
From:       David Faure <faure () kde ! org>
Date:       2003-01-27 0:21:40
[Download RAW message or body]

CVS commit by faure: 

Fix for find previous


  M +3 -2      kspread_view.cc   1.633
  M +2 -1      kspread_view.h   1.196


--- koffice/kspread/kspread_view.cc  #1.632:1.633
@@ -3417,5 +3417,6 @@ void KSpreadView::initFindReplace()
         rowStart = marker.y();
     }
-    m_startColumn = colStart;
+    m_findLeftColumn = region.left();
+    m_findRightColumn = region.right();
     m_findPos = QPoint( colStart, rowStart );
     m_findEnd = QPoint( colEnd, rowEnd );
@@ -3496,5 +3497,5 @@ KSpreadCell* KSpreadView::findNextCell()
             else --col;
         }
-        col = m_startColumn;
+        col = forw ? m_findLeftColumn : m_findRightColumn;
     }
     // if ( !cell )

--- koffice/kspread/kspread_view.h  #1.195:1.196
@@ -754,5 +754,6 @@ private:
     KFind* m_find;
     KReplace* m_replace;
-    int m_startColumn;
+    int m_findLeftColumn;
+    int m_findRightColumn;
     QPoint m_findPos;
     QPoint m_findEnd;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic