summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx8
-rw-r--r--svx/source/svdraw/svdorect.cxx1
2 files changed, 9 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index dbd259fa21ad..ff27728c1d09 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -47,6 +47,7 @@
#include <svx/sdrpaintwindow.hxx>
#include <svx/sdrpagewindow.hxx>
#include <svx/sdrhittesthelper.hxx>
+#include <svx/svdocapt.hxx>
#include <editeng/editdata.hxx>
@@ -621,6 +622,13 @@ void SdrMarkView::SetMarkHandles()
// ( necessary for handles to be displayed in
// correct position )
Point aGridOff = GetGridOffset();
+
+ // #i122142# for captions in TextEdit, force to FrameHdls to get the special text selection
+ if(!bFrmHdl && pMarkedObj && bSingleTextObjMark && dynamic_cast< SdrCaptionObj* >(pMarkedObj))
+ {
+ bFrmHdl = true;
+ }
+
if (bFrmHdl)
{
Rectangle aRect(GetMarkedObjRect());
diff --git a/svx/source/svdraw/svdorect.cxx b/svx/source/svdraw/svdorect.cxx
index da2d9fe77021..d17a0ed3b43e 100644
--- a/svx/source/svdraw/svdorect.cxx
+++ b/svx/source/svdraw/svdorect.cxx
@@ -316,6 +316,7 @@ SdrHdl* SdrRectObj::GetHdl(sal_uInt32 nHdlNum) const
{
case 0:
{
+ OSL_ENSURE(!IsTextEditActive(), "Do not use a ImpTextframeHdl for hilighting text in active text edit, this will collide with EditEngine paints (!)");
// hack for calc grid sync to ensure the hatched area
// for a textbox is displayed at correct position
pH = new ImpTextframeHdl(aRect + GetGridOffset() );