summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-08-01 13:14:40 +0000
committerHerbert Dürr <hdu@apache.org>2013-08-01 13:14:40 +0000
commitdb318652c8ac1ea3f4e7c4a2f838a34e4b2ec756 (patch)
tree6b87b4082233ef34de99c7ebfe00f97b7ff1f902 /sc
parent35b5e2906b1966a43604f1addeaea56d785861a6 (diff)
#i122841# initialize LotusRoot singleton already in LotusRoot constructor
As its LotAttrCache member already needs it which results in crashes if any Lotus 123 files were loaded.
Notes
Notes: prefer: 2ac26e6b5248f2f3fde8dc4341b01ef15b6c3a29
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/lotus/lotimpop.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/filter/lotus/lotimpop.cxx b/sc/source/filter/lotus/lotimpop.cxx
index f6df37dc8176..9dd8692333bb 100644
--- a/sc/source/filter/lotus/lotimpop.cxx
+++ b/sc/source/filter/lotus/lotimpop.cxx
@@ -55,9 +55,10 @@ LOTUS_ROOT::LOTUS_ROOT( ScDocument* pDocP, CharSet eQ )
eFirstType( Lotus_X),
eActType( Lotus_X),
pRngNmBffWK3( new RangeNameBufferWK3),
- pFontBuff( new LotusFontBuffer),
- pAttrTable( new LotAttrTable)
+ pFontBuff( new LotusFontBuffer)
{
+ pLotusRoot = this; // #122841# the singleton global var is already needed for LotAttrTable
+ pAttrTable = new LotAttrTable;
}