]> git.saurik.com Git - wxWidgets.git/blobdiff - src/ribbon/toolbar.cpp
Add possibility to use sizers in ribbon panel, fixes #12404: wxRibbonPanel and wxSizer
[wxWidgets.git] / src / ribbon / toolbar.cpp
index 945204f269feb58fd2c62f179c1d8ac9fb9ca43f..9e8839bc92113ce59c2359bac2d2e59b500eb44c 100644 (file)
     #pragma hdrstop
 #endif
 
-#include "wx/ribbon/toolbar.h"
-
 #if wxUSE_RIBBON
 
+#include "wx/ribbon/toolbar.h"
 #include "wx/ribbon/art.h"
 #include "wx/ribbon/bar.h"
 #include "wx/dcbuffer.h"
@@ -433,6 +432,7 @@ bool wxRibbonToolBar::Realize()
             smallest_area = GetSizeInOrientation(size, major_axis);
         }
     }
+    delete[] row_sizes;
 
     // Position the groups
     wxSizeEvent dummy_event(GetSize());