No longer ignores first-line indent if no left indent specified

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2011-07-20 16:23:37 +00:00
parent 5707e433a3
commit 6607ee151a

View File

@ -415,9 +415,12 @@ bool wxRichTextIndentsSpacingPage::TransferDataFromWindow()
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;