]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtextindentspage.cpp
Fix compilation errors under OSX.
[wxWidgets.git] / src / richtext / richtextindentspage.cpp
index 2caf0c61c0ea5df452d1d9501ff02f951551613a..f73bb162117faac8ef92e485d7c461f4e9e32371 100644 (file)
@@ -201,7 +201,7 @@ void wxRichTextIndentsSpacingPage::CreateControls()
 
     itemBoxSizer20->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL, 5);
 
 
     itemBoxSizer20->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL, 5);
 
-    wxFlexGridSizer* itemFlexGridSizer22 = new wxFlexGridSizer(4, 2, 0, 0);
+    wxFlexGridSizer* itemFlexGridSizer22 = new wxFlexGridSizer(0, 2, 0, 0);
     itemBoxSizer20->Add(itemFlexGridSizer22, 0, wxALIGN_CENTER_VERTICAL, 5);
 
     wxStaticText* itemStaticText23 = new wxStaticText( itemRichTextDialogPage1, wxID_STATIC, _("&Left:"), wxDefaultPosition, wxDefaultSize, 0 );
     itemBoxSizer20->Add(itemFlexGridSizer22, 0, wxALIGN_CENTER_VERTICAL, 5);
 
     wxStaticText* itemStaticText23 = new wxStaticText( itemRichTextDialogPage1, wxID_STATIC, _("&Left:"), wxDefaultPosition, wxDefaultSize, 0 );
@@ -279,7 +279,7 @@ void wxRichTextIndentsSpacingPage::CreateControls()
 
     itemBoxSizer39->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL, 5);
 
 
     itemBoxSizer39->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL, 5);
 
-    wxFlexGridSizer* itemFlexGridSizer41 = new wxFlexGridSizer(3, 2, 0, 0);
+    wxFlexGridSizer* itemFlexGridSizer41 = new wxFlexGridSizer(30, 2, 0, 0);
     itemFlexGridSizer41->AddGrowableCol(1);
     itemBoxSizer39->Add(itemFlexGridSizer41, 0, wxALIGN_CENTER_VERTICAL, 5);
 
     itemFlexGridSizer41->AddGrowableCol(1);
     itemBoxSizer39->Add(itemFlexGridSizer41, 0, wxALIGN_CENTER_VERTICAL, 5);
 
@@ -415,9 +415,12 @@ bool wxRichTextIndentsSpacingPage::TransferDataFromWindow()
 
     wxString leftIndent(m_indentLeft->GetValue());
     wxString leftFirstIndent(m_indentLeftFirst->GetValue());
 
     wxString leftIndent(m_indentLeft->GetValue());
     wxString leftFirstIndent(m_indentLeftFirst->GetValue());
-    if (!leftIndent.empty())
+    if (!leftIndent.empty() || !leftFirstIndent.empty())
     {
     {
-        int visualLeftIndent = wxAtoi(leftIndent);
+        int visualLeftIndent = 0;
+        if (!leftIndent.empty())
+            visualLeftIndent = wxAtoi(leftIndent);
+
         int visualLeftFirstIndent = wxAtoi(leftFirstIndent);
         int actualLeftIndent = visualLeftFirstIndent;
         int actualLeftSubIndent = visualLeftIndent - visualLeftFirstIndent;
         int visualLeftFirstIndent = wxAtoi(leftFirstIndent);
         int actualLeftIndent = visualLeftFirstIndent;
         int actualLeftSubIndent = visualLeftIndent - visualLeftFirstIndent;