Spreadsheet changes
Various changes to support in-place editing, and more.
This commit is contained in:
@@ -63,8 +63,11 @@ App::Property *PropertyColumnWidths::Copy() const
|
||||
|
||||
void PropertyColumnWidths::Paste(const App::Property &from)
|
||||
{
|
||||
setValues(static_cast<const PropertyColumnWidths&>(from).getValues());
|
||||
}
|
||||
|
||||
void PropertyColumnWidths::setValues(const std::map<int,int> &values) {
|
||||
aboutToSetValue();
|
||||
const PropertyColumnWidths * frompcw = static_cast<const PropertyColumnWidths*>(&from);
|
||||
|
||||
std::map<int, int>::const_iterator i;
|
||||
|
||||
@@ -79,8 +82,8 @@ void PropertyColumnWidths::Paste(const App::Property &from)
|
||||
clear();
|
||||
|
||||
/* Copy new map from from */
|
||||
i = frompcw->begin();
|
||||
while (i != frompcw->end()) {
|
||||
i = values.begin();
|
||||
while (i != values.end()) {
|
||||
insert(*i);
|
||||
dirty.insert(i->first);
|
||||
++i;
|
||||
|
||||
Reference in New Issue
Block a user