]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/caret.h
Fixed a notebook crash and added more tests to sample.
[wxWidgets.git] / include / wx / caret.h
index 6a314bc94eee0cea858356e5da69087f2acca727..1c10856e42c97dd013de8f7894f7cd55f1b94811 100644 (file)
@@ -96,12 +96,12 @@ public:
         {
             if ( show )
             {
-                if ( ++m_countVisible > 0 )
+                if ( m_countVisible++ == 0 )
                     DoShow();
             }
             else
             {
-                if ( --m_countVisible < 1 )
+                if ( --m_countVisible == 0 )
                     DoHide();
             }
         }