From 9f5b54d1ef6a9d87758a21653bd3d19a49d0b75e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 7 Jan 2009 11:44:43 +0000 Subject: [PATCH] Fixed assert caused by incorrect number of flex grid sizer rows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextdialogs.pjd | 25 ++++++++++++++----------- src/richtext/richtextindentspage.cpp | 4 ++-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/richtext/richtextdialogs.pjd b/src/richtext/richtextdialogs.pjd index 7766d64cdb..60559989e1 100644 --- a/src/richtext/richtextdialogs.pjd +++ b/src/richtext/richtextdialogs.pjd @@ -20,6 +20,7 @@ "" 0 1 + 0 "<All platforms>" "<Any>" "///////////////////////////////////////////////////////////////////////////// @@ -114,6 +115,7 @@ 0 1 0 + 0 @@ -157,6 +159,7 @@ "%AUTO%" "%AUTO%" "%AUTO%" + "%AUTO%" "%AUTO%" "%AUTO%" "%AUTO%" @@ -168,6 +171,7 @@ "%AUTO%" "%AUTO%" "%AUTO%" + "%AUTO%" "%AUTO%" "%AUTO%" "%AUTO%" @@ -1998,7 +2002,6 @@ 300 0 "" - 0 "wxBoxSizer V" "dialog-control-document" @@ -2012,14 +2015,6 @@ "wbBoxSizerProxy" "Vertical" "" - "Centre" - "Centre" - 0 - 5 - 1 - 1 - 1 - 1 0 0 0 @@ -2830,7 +2825,7 @@ "" "" 2 - 2 + 4 0 0 "" @@ -3791,7 +3786,7 @@ "1" "" 2 - 2 + 3 0 0 "" @@ -5259,6 +5254,14 @@ "wbBoxSizerProxy" "Vertical" "" + "Centre" + "Centre" + 0 + 5 + 1 + 1 + 1 + 1 0 0 0 diff --git a/src/richtext/richtextindentspage.cpp b/src/richtext/richtextindentspage.cpp index 1fbcfbb76a..22a9145509 100644 --- a/src/richtext/richtextindentspage.cpp +++ b/src/richtext/richtextindentspage.cpp @@ -199,7 +199,7 @@ void wxRichTextIndentsSpacingPage::CreateControls() itemBoxSizer20->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL, 5); - wxFlexGridSizer* itemFlexGridSizer22 = new wxFlexGridSizer(2, 2, 0, 0); + wxFlexGridSizer* itemFlexGridSizer22 = new wxFlexGridSizer(4, 2, 0, 0); itemBoxSizer20->Add(itemFlexGridSizer22, 0, wxALIGN_CENTER_VERTICAL, 5); wxStaticText* itemStaticText23 = new wxStaticText( itemPanel1, wxID_STATIC, _("&Left:"), wxDefaultPosition, wxDefaultSize, 0 ); @@ -277,7 +277,7 @@ void wxRichTextIndentsSpacingPage::CreateControls() itemBoxSizer39->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL, 5); - wxFlexGridSizer* itemFlexGridSizer41 = new wxFlexGridSizer(2, 2, 0, 0); + wxFlexGridSizer* itemFlexGridSizer41 = new wxFlexGridSizer(3, 2, 0, 0); itemFlexGridSizer41->AddGrowableCol(1); itemBoxSizer39->Add(itemFlexGridSizer41, 0, wxALIGN_CENTER_VERTICAL, 5); -- 2.45.2