[haiku-commits] r40864 - haiku/trunk/src/apps/deskcalc

  • From: stpere@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 8 Mar 2011 02:50:25 +0100 (CET)

Author: stpere
Date: 2011-03-08 02:50:25 +0100 (Tue, 08 Mar 2011)
New Revision: 40864
Changeset: http://dev.haiku-os.org/changeset/40864
Ticket: http://dev.haiku-os.org/ticket/7010

Modified:
   haiku/trunk/src/apps/deskcalc/CalcView.cpp
Log:
DeskCalc

Move the Invalidate() call introduced in r40863. It is now in FrameResized().

This now seems to fix #7010 for good.



Modified: haiku/trunk/src/apps/deskcalc/CalcView.cpp
===================================================================
--- haiku/trunk/src/apps/deskcalc/CalcView.cpp  2011-03-07 23:33:08 UTC (rev 
40863)
+++ haiku/trunk/src/apps/deskcalc/CalcView.cpp  2011-03-08 01:50:25 UTC (rev 
40864)
@@ -679,6 +679,7 @@
        float inset = (frame.Height() - fExpressionTextView->LineHeight(0)) / 2;
        frame.InsetBy(inset, inset);
        fExpressionTextView->SetTextRect(frame);
+       Invalidate();
 }
 
 
@@ -1173,7 +1174,6 @@
                        window->ResizeTo(fWidth, height);
                } else
                        ResizeTo(fWidth, height);
-               Invalidate();
        }
 }
 


Other related posts: