Corrected multiple cell property editing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -9564,6 +9564,9 @@ bool wxRichTextCell::EditProperties(wxWindow* parent, wxRichTextBuffer* buffer)
|
|||||||
wxRichTextSizePage::ShowFloatingControls(true);
|
wxRichTextSizePage::ShowFloatingControls(true);
|
||||||
|
|
||||||
if (ok)
|
if (ok)
|
||||||
|
{
|
||||||
|
wxRichTextAttr newAttr = cellDlg.GetAttributes();
|
||||||
|
if (!(newAttr == attr))
|
||||||
{
|
{
|
||||||
if (multipleCells)
|
if (multipleCells)
|
||||||
{
|
{
|
||||||
@@ -9578,6 +9581,7 @@ bool wxRichTextCell::EditProperties(wxWindow* parent, wxRichTextBuffer* buffer)
|
|||||||
// the style directly instead of applying (which ignores indeterminate attributes,
|
// the style directly instead of applying (which ignores indeterminate attributes,
|
||||||
// leaving them as they were).
|
// leaving them as they were).
|
||||||
cellDlg.ApplyStyle(buffer->GetRichTextCtrl(), wxRICHTEXT_SETSTYLE_WITH_UNDO|wxRICHTEXT_SETSTYLE_RESET);
|
cellDlg.ApplyStyle(buffer->GetRichTextCtrl(), wxRICHTEXT_SETSTYLE_WITH_UNDO|wxRICHTEXT_SETSTYLE_RESET);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user