-#else
- if (!rtc->SuppressingUndo())
- {
- // Create a clone containing the current state of the object. It will be used to Undo the action
- clone = obj.Clone();
- clone->SetParent(obj.GetParent());
- action = new wxRichTextAction(NULL, _("Change Properties"), wxRICHTEXT_CHANGE_OBJECT, buffer, rtc->GetFocusObject(), rtc);
- action->SetObject(&obj);
- action->SetPosition(GetRange().GetStart());
- }
-
- obj.SetProperties(properties);
-
- if (!rtc->SuppressingUndo())
- {
- buffer->SubmitAction(action);
- // Finally store the original-state clone; doing so earlier would cause various failures
- action->StoreObject(clone);
- }
-#endif