App: fix dynamic property undo/redo
Instead of enforce property type match when undo/redo, modify various property Paste() to make it type safe.
This commit is contained in:
@@ -63,7 +63,7 @@ App::Property *PropertyColumnWidths::Copy() const
|
||||
|
||||
void PropertyColumnWidths::Paste(const App::Property &from)
|
||||
{
|
||||
setValues(static_cast<const PropertyColumnWidths&>(from).getValues());
|
||||
setValues(dynamic_cast<const PropertyColumnWidths&>(from).getValues());
|
||||
}
|
||||
|
||||
void PropertyColumnWidths::setValues(const std::map<int,int> &values) {
|
||||
|
||||
Reference in New Issue
Block a user