diff --git a/src/Mod/Spreadsheet/App/PropertySheet.cpp b/src/Mod/Spreadsheet/App/PropertySheet.cpp index 1a30219031af..bd8c9318c911 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.cpp +++ b/src/Mod/Spreadsheet/App/PropertySheet.cpp @@ -764,7 +764,7 @@ void PropertySheet::removeColumns(int col, int count) } } -unsigned int PropertySheet::getMemSize() +unsigned int PropertySheet::getMemSize() const { return sizeof(*this); } diff --git a/src/Mod/Spreadsheet/App/PropertySheet.h b/src/Mod/Spreadsheet/App/PropertySheet.h index c718d549d7d6..bc7d9ddc8391 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.h +++ b/src/Mod/Spreadsheet/App/PropertySheet.h @@ -105,7 +105,7 @@ class PropertySheet : public App::Property { void removeColumns(int col, int count); - unsigned int getMemSize (void); + virtual unsigned int getMemSize (void) const; bool mergeCells(CellAddress from, CellAddress to);