summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/servuno.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-04-24 16:54:23 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-04-26 09:58:01 -0400
commit1de32aeca83edb2c8e6a575e4f7132ec39b9ca52 (patch)
treee53bdf3cca3db3d477b2fa8d3b61ba4a6db1a7af /sc/source/ui/unoobj/servuno.cxx
parent399727e98353c24719408780ad9d7e7eee198176 (diff)
Ok, the regression I had introduced in my prev commit is now fixed.
The idea is to keep a reference to the ScHeaderFooterTextData instance in ScHeaderFooterTextObj which is the authoritative copy, instead of making copies of it everywhere. This way when the text is updated in ScHeaderFooterTextObj all the other places will see it too without needing to propagate the change.
Diffstat (limited to 'sc/source/ui/unoobj/servuno.cxx')
-rw-r--r--sc/source/ui/unoobj/servuno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx
index 9227423954dc..816be4140cf4 100644
--- a/sc/source/ui/unoobj/servuno.cxx
+++ b/sc/source/ui/unoobj/servuno.cxx
@@ -445,7 +445,7 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance(
{
uno::Reference<text::XTextRange> xNullContent;
xRet.set(static_cast<text::XTextField*>(
- new ScHeaderFieldObj(xNullContent, NULL, 0, nType, ESelection())));
+ new ScHeaderFieldObj(xNullContent, NULL, nType, ESelection())));
}
break;
case SC_SERVICE_CELLSTYLE: