summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc/futext.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2002-12-11 13:13:00 +0000
committerNiklas Nebel <nn@openoffice.org>2002-12-11 13:13:00 +0000
commit8bb02332813ab60a3306a1520bc779050aa2fd93 (patch)
tree59e808c28428ba23fffc366af78b1ac9941ef66b /sc/source/ui/drawfunc/futext.cxx
parent92b5d9c8f647c8b2d31a25fd356382a56155921f (diff)
#105815# don't set default text for text objects and callouts, start edit mode instead
Diffstat (limited to 'sc/source/ui/drawfunc/futext.cxx')
-rw-r--r--sc/source/ui/drawfunc/futext.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/ui/drawfunc/futext.cxx b/sc/source/ui/drawfunc/futext.cxx
index 9968a612a813..293ced00c614 100644
--- a/sc/source/ui/drawfunc/futext.cxx
+++ b/sc/source/ui/drawfunc/futext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: futext.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: nn $ $Date: 2002-09-12 18:07:17 $
+ * last change: $Author: nn $ $Date: 2002-12-11 14:12:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -871,8 +871,9 @@ SdrObject* FuText::CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rR
SdrTextObj* pText = (SdrTextObj*)pObj;
pText->SetLogicRect(rRectangle);
- String aText(ScResId(STR_CAPTION_DEFAULT_TEXT));
- pText->SetText(aText);
+ // #105815# don't set default text, start edit mode instead
+ // String aText(ScResId(STR_CAPTION_DEFAULT_TEXT));
+ // pText->SetText(aText);
sal_Bool bVertical = (SID_DRAW_TEXT_VERTICAL == nID);
sal_Bool bMarquee = (SID_DRAW_TEXT_MARQUEE == nID);
@@ -905,6 +906,8 @@ SdrObject* FuText::CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rR
pObj->SetItemSetAndBroadcast(aSet);
}
+
+ SetInEditMode( pObj ); // #105815# start edit mode
}
else
{