diff options
author | David Tardon <dtardon@redhat.com> | 2010-12-01 13:36:21 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-12-01 13:36:21 +0100 |
commit | b2bf139ffe88a29553104b5379389a9ef4d5028c (patch) | |
tree | 43f2ef03a002acdad699f2edff92ec7631e50d23 /sc/source/ui/inc/csvgrid.hxx | |
parent | 8d78326d7462db16dc734233280f157284799305 (diff) |
Resolves: rhbz#658304 late-init color config. to avoid crash on recovery
Diffstat (limited to 'sc/source/ui/inc/csvgrid.hxx')
-rw-r--r-- | sc/source/ui/inc/csvgrid.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/inc/csvgrid.hxx b/sc/source/ui/inc/csvgrid.hxx index c5d5eb58649f..acb21731528e 100644 --- a/sc/source/ui/inc/csvgrid.hxx +++ b/sc/source/ui/inc/csvgrid.hxx @@ -105,7 +105,7 @@ private: VirtualDevice maGridDev; /// Data grid with selection and cursor. PopupMenu maPopup; /// Popup menu for column types. - ::svtools::ColorConfig& mrColorConfig; /// Application color configuration. + ::svtools::ColorConfig* mpColorConfig; /// Application color configuration. Color maBackColor; /// Cell background color. Color maGridColor; /// Table grid color. Color maGridPBColor; /// Grid color for "first imported line" delimiter. @@ -137,6 +137,9 @@ public: explicit ScCsvGrid( ScCsvControl& rParent ); virtual ~ScCsvGrid(); + /** Finishes initialization. Must be called after constructing a new object. */ + void Init(); + // common grid handling --------------------------------------------------- public: /** Updates layout data dependent from the control's state. */ |