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:
parent
5707e433a3
commit
6607ee151a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user