summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-06-12 15:09:19 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-06-12 15:09:19 +0000
commitfbc03d29f1b7b96ce2fe2315f5ed3f048bb2486d (patch)
tree359b4815af772c94995d83f265ae347967e24f85
parent82eb2381e6e8a733e2b5354047c86fd717bee263 (diff)
Put curley braces around selection clear code to work around
VC++ variable scoping bug... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@604 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_cutpaste_win32.cxx23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/Fl_cutpaste_win32.cxx b/src/Fl_cutpaste_win32.cxx
index 28f8365a6..ee69b75d6 100644
--- a/src/Fl_cutpaste_win32.cxx
+++ b/src/Fl_cutpaste_win32.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_cutpaste_win32.cxx,v 1.5.2.2 1999/06/12 13:04:15 mike Exp $"
+// "$Id: Fl_cutpaste_win32.cxx,v 1.5.2.3 1999/06/12 15:09:19 mike Exp $"
//
// WIN32 cut/paste for the Fast Light Tool Kit (FLTK).
//
@@ -46,17 +46,18 @@ static int selection_xevent_handler(int) {
switch (fl_msg.message) {
- case WM_DESTROYCLIPBOARD:
- Fl_Window *w = Fl::first_window();
- while (w != (Fl_Window *)0)
- if (fl_msg.hwnd == fl_xid(w)) break;
- else w = Fl::next_window(w);
+ case WM_DESTROYCLIPBOARD: {
+ Fl_Window *w = Fl::first_window();
+ while (w != (Fl_Window *)0)
+ if (fl_msg.hwnd == fl_xid(w)) break;
+ else w = Fl::next_window(w);
- if (w == (Fl_Window *)0) {
- Fl::selection_owner(0);
- Fl::flush(); // get the redraw to happen
+ if (w == (Fl_Window *)0) {
+ Fl::selection_owner(0);
+ Fl::flush(); // get the redraw to happen
+ }
+ return 1;
}
- return 1;
case WM_RENDERALLFORMATS:
if (!OpenClipboard(fl_xid(Fl::first_window()))) return 0;
@@ -137,5 +138,5 @@ void Fl::paste(Fl_Widget &receiver) {
}
//
-// End of "$Id: Fl_cutpaste_win32.cxx,v 1.5.2.2 1999/06/12 13:04:15 mike Exp $".
+// End of "$Id: Fl_cutpaste_win32.cxx,v 1.5.2.3 1999/06/12 15:09:19 mike Exp $".
//