Kaydet (Commit) bdcd01c3 authored tarafından Armin Le Grand's avatar Armin Le Grand

i122142 do use simple text hilight frame when captions are in TextEdit mode

üst fd23db16
......@@ -54,6 +54,7 @@
#include <svx/sdrpaintwindow.hxx>
#include <svx/sdrpagewindow.hxx>
#include <svx/sdrhittesthelper.hxx>
#include <svx/svdocapt.hxx>
////////////////////////////////////////////////////////////////////////////////////////////////////
// predefines
......@@ -716,6 +717,12 @@ void SdrMarkView::SetMarkHandles()
}
}
// #122142# 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());
......
......@@ -330,6 +330,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 (!)");
pH = new ImpTextframeHdl(aRect);
pH->SetObj((SdrObject*)this);
pH->SetDrehWink(aGeo.nDrehWink);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment