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

List:       koffice-devel
Subject:    Bug fix patch for KPresenter (#25680)
From:       Toshitaka Fujioka <toshitaka () kde ! gr ! jp>
Date:       2001-05-25 10:29:12
[Download RAW message or body]

Hello,

This patch fixes bug number #25680.
I don't understand whether a way of this revision is right.

Please review.

-- 
Toshitaka Fujioka
http://www.kde.org                The K Desktop Environment Project
                                                    fujioka@kde.org
http://www.kde.gr.jp               Japan KDE User's Group
                                                    toshitaka@kde.gr.jp

-- We offer the best Desktop Environment to you.  (This is my goal. ;-)) --     


["kdelibs-KDoubleNumInput-fix-20010525.diff" (text/plain)]

diff -ur kdelibs.orig/kdeui/knuminput.cpp kdelibs/kdeui/knuminput.cpp
--- kdelibs.orig/kdeui/knuminput.cpp	Fri May 25 18:56:54 2001
+++ kdelibs/kdeui/knuminput.cpp	Fri May 25 19:13:09 2001
@@ -870,12 +870,15 @@
 
 void KDoubleNumInput::resetEditBox()
 {
-    if(!m_specialvalue.isEmpty() && (fabs(m_value - m_lower) < 1e-10))
+    if(!m_specialvalue.isEmpty() && (fabs(m_value - m_lower) < 1e-10)) {
         edit->setText(m_specialvalue);
+        edit->home( false );
+    }
     else {
         QString s;
         s.sprintf(m_format, m_value);
         edit->setText(m_prefix + s + m_suffix);
+        edit->home( false );
     }
 }
 

_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.kde.org/mailman/listinfo/koffice-devel


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

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