texmacs-dev
[Top][All Lists]
Advanced

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

[Texmacs-dev] [PATCH] Window/Widget/Button/popup_button.cc


From: Igor V. Kovalenko
Subject: [Texmacs-dev] [PATCH] Window/Widget/Button/popup_button.cc
Date: Sun, 03 Nov 2002 19:47:10 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020809

Hi!
This patch should make min/max calculations in get_size more happy as these 
values are passed by reference.
Otherwise it's mostly a cosmetic modification.

------------------------------

diff -udBbHr TeXmacs-1.0.0.20-src/src/Window/Widget/Button/popup_button.cc 
TeXmacs-1.0.0.20-src-20021029/src/Window/Widget/Button/popup_button.cc
--- TeXmacs-1.0.0.20-src/src/Window/Widget/Button/popup_button.cc       
2002-08-10 10:50:50.000000000 +0400
+++ TeXmacs-1.0.0.20-src-20021029/src/Window/Widget/Button/popup_button.cc      
2002-11-02 04:32:30.000000000 +0300
@@ -98,7 +98,7 @@
   }

   // int start_2= texmacs_time ();
-  SI x, y, w, h;
+  SI x, y, w=0, h=0;
   win->get_position (x, y);
   popup_w << get_size (w, h);


--
Regards,
Igor V. Kovalenko    mailto: iko at crec dot mipt dot ru





reply via email to

[Prev in Thread] Current Thread [Next in Thread]