[gnome-commander/gcmd-1-2-8] Fixed problem #604558 (cursor lost/placed in wrong position)



commit b0a98a87de3bf92a9256f2980a264492da810595
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Dec 29 21:13:15 2009 +0100

    Fixed problem #604558 (cursor lost/placed in wrong position)

 NEWS                       |    1 +
 doc/C/gnome-commander.xml  |    3 +++
 src/gnome-cmd-file-list.cc |    2 +-
 3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 6d746d5..7247b65 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ gnome-commander 1.2.8.5
 ---------------
 
 Bug fixes:
+ * Fixed problem #604558 (cursor lost/placed in wrong position)
  * Fixed problem #604904 (build error on OpenSolaris)
 
 
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index e7cd99b..c064409 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6022,6 +6022,9 @@
                 <para>
                     <itemizedlist>
                         <listitem>
+                            <para>Fixed problem #604558 (cursor lost/placed in wrong position)</para>
+                        </listitem>
+                        <listitem>
                             <para>Fixed problem #604904 (build error on OpenSolaris)</para>
                         </listitem>
                     </itemizedlist>
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index f172882..bf9cf88 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1710,7 +1710,7 @@ void GnomeCmdFileList::focus_file(const gchar *focus_file, gboolean scroll_to_fi
 
 void GnomeCmdFileList::select_row(gint row)
 {
-    focus_file_at_row (this, row==-1 ? priv->cur_file : row);
+    focus_file_at_row (this, row==-1 ? 0 : row);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]