summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-05-08 12:19:43 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-05-08 14:23:06 -0400
commitc5af59331a7ce7beac38c7d95d03decd0eb75db0 (patch)
treef3283964bb1909222b399bde2bc7560ea3507f3c
parentabc8bfb51ade3cf9e1506fe7386ae5afab5e92f1 (diff)
Remove the evil hack.
Change-Id: I4b560e276bd0026e90e8a27238fe3f588cf91e55
-rw-r--r--sc/source/ui/unoobj/notesuno.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/sc/source/ui/unoobj/notesuno.cxx b/sc/source/ui/unoobj/notesuno.cxx
index f94e812bb0a5..924d9b049476 100644
--- a/sc/source/ui/unoobj/notesuno.cxx
+++ b/sc/source/ui/unoobj/notesuno.cxx
@@ -391,20 +391,7 @@ void SAL_CALL ScAnnotationShapeObj::insertTextContent( const uno::Reference< tex
uno::RuntimeException)
{
SolarMutexGuard aGuard;
-#if 1
GetUnoText().insertTextContent(xRange, xContent, bAbsorb);
-#else
- // Evil hack to convert a ScEditFieldObj based text field into a
- // SvxUnoTextField based one. See SvxUnoTextBase::insertTextContent() for
- // the reason why. We need a clean solution for this.
-
- ScEditFieldObj* pField = ScEditFieldObj::getImplementation(xContent);
- uno::Reference<text::XTextContent> xContent2 = xContent;
- if (pField)
- xContent2.set(new SvxUnoTextField(pField->GetFieldType()));
-
- GetUnoText().insertTextContent(xRange, xContent2, bAbsorb);
-#endif
}
void SAL_CALL ScAnnotationShapeObj::removeTextContent( const uno::Reference< text::XTextContent >& xContent )