[haiku-commits] r40035 - haiku/trunk/src/apps/showimage

  • From: leavengood@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 29 Dec 2010 21:01:49 +0100 (CET)

Author: leavengood
Date: 2010-12-29 21:01:49 +0100 (Wed, 29 Dec 2010)
New Revision: 40035
Changeset: http://dev.haiku-os.org/changeset/40035

Modified:
   haiku/trunk/src/apps/showimage/ProgressWindow.cpp
Log:
Revert most of r40007. I also will mark CID 2393 as ignored.


Modified: haiku/trunk/src/apps/showimage/ProgressWindow.cpp
===================================================================
--- haiku/trunk/src/apps/showimage/ProgressWindow.cpp   2010-12-29 19:56:33 UTC 
(rev 40034)
+++ haiku/trunk/src/apps/showimage/ProgressWindow.cpp   2010-12-29 20:01:49 UTC 
(rev 40035)
@@ -69,12 +69,12 @@
        BScreen screen(referenceWindow);
        if (!center) {
                BMessage settings;
-               int32 borderWidth = 5;
-               if (GetDecoratorSettings(&settings) == B_OK) {
-                       if (settings.FindInt32("border width", &borderWidth) != 
B_OK)
-                               borderWidth = 5;
-               }
+               GetDecoratorSettings(&settings);
 
+               int32 borderWidth;
+               if (settings.FindInt32("border width", &borderWidth) != B_OK)
+                       borderWidth = 5;
+
                MoveTo(screen.Frame().left + borderWidth,
                        screen.Frame().bottom - Bounds().Height() - 
borderWidth);
        } else


Other related posts:

  • » [haiku-commits] r40035 - haiku/trunk/src/apps/showimage - leavengood