]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
don't derive wxHtmlTag and wxHtmlTagsCache from wxObject, it's useless
[wxWidgets.git] / src / msw / tbar95.cpp
index 86b92ac0350cc88252cb4df1d4255be216ebde40..7966a6cd196f389d3f73cb1c0d42dd81a68b4332 100644 (file)
@@ -940,7 +940,7 @@ bool wxToolBar::Realize()
                                 DoToggleTool(tool, true);
                             }
                         }
-                        else if (tool->IsToggled())
+                        else if ( tool->IsToggled() )
                         {
                             wxToolBarToolsList::compatibility_iterator nodePrev = node->GetPrevious();
                             int prevIndex = i - 1;
@@ -954,7 +954,7 @@ bool wxToolBar::Realize()
                                 if ( tool->Toggle(false) )
                                     DoToggleTool(tool, false);
 
-                                prevButton.fsState = TBSTATE_ENABLED;
+                                prevButton.fsState &= TBSTATE_CHECKED;
                                 nodePrev = nodePrev->GetPrevious();
                                 prevIndex--;
                             }