Hi,

this fall-through had me scratching my head for a while...

It made InteractiveImageHandler eat keypresses outside its image.

rgds
jp

Index: ViewerEventHandlers.cpp
===================================================================
--- ViewerEventHandlers.cpp     (revision 12909)
+++ ViewerEventHandlers.cpp     (working copy)
@@ -922,6 +922,7 @@
             {
return _image->sendKeyEvent(ea.getKey(), ea.getEventType()==osgGA::GUIEventAdapter::KEYDOWN);
             }
+            break;
         }
         case (osgGA::GUIEventAdapter::RESIZE):
         {
@@ -932,6 +933,7 @@
                 resize(ea.getWindowWidth(), ea.getWindowHeight());
                 return true;
             }
+            break;
         }

         default:

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Attachment: ViewerEventHandlers.cpp.gz
Description: application/gzip

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to