Author: orw
Date: Tue Apr 30 12:55:34 2013
New Revision: 1477603
URL: http://svn.apache.org/r1477603
Log:
<SwDrawTextShell> - remove self-destructing call to
<SwView::AttrChangedNotify(..)>
- remove superfluous slot invalidation
Modified:
openoffice/trunk/main/sw/source/ui/shells/drwtxtex.cxx
openoffice/trunk/main/sw/source/ui/shells/drwtxtsh.cxx
Modified: openoffice/trunk/main/sw/source/ui/shells/drwtxtex.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/ui/shells/drwtxtex.cxx?rev=1477603&r1=1477602&r2=1477603&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/ui/shells/drwtxtex.cxx (original)
+++ openoffice/trunk/main/sw/source/ui/shells/drwtxtex.cxx Tue Apr 30 12:55:34
2013
@@ -707,7 +707,6 @@ ASK_ADJUST:
}
else
rSet.InvalidateItem(nSlotId);
- Invalidate(SID_ATTR_PARA_ULSPACE);
nSlotId = 0;
}
break;
Modified: openoffice/trunk/main/sw/source/ui/shells/drwtxtsh.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/ui/shells/drwtxtsh.cxx?rev=1477603&r1=1477602&r2=1477603&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/ui/shells/drwtxtsh.cxx (original)
+++ openoffice/trunk/main/sw/source/ui/shells/drwtxtsh.cxx Tue Apr 30 12:55:34
2013
@@ -168,19 +168,7 @@ SwDrawTextShell::SwDrawTextShell(SwView
__EXPORT SwDrawTextShell::~SwDrawTextShell()
{
if ( GetView().GetCurShell() == this )
- rView.ResetSubShell();
-
- //MA 13. Nov. 96: Das kommt durchaus vor #33141#:
- //(doppel-)Klick von einem Texteditmode in ein anderes Objekt,
zwischendurch
- //wird eine andere (Draw-)Shell gepusht, die alte aber noch nicht
deletet.
- //Dann wird vor dem Flush wieder ein DrawTextShell gepusht und der Mode
ist
- //eingeschaltet. In diesem Moment wird der Dispatcher geflusht und die
alte
- //DrawTextShell zerstoert.
-// ASSERT( !pSdrView->IsTextEdit(), "TextEdit in DTor DrwTxtSh?" );
-// if (pSdrView->IsTextEdit())
-// GetShell().EndTextEdit(); // Danebengeklickt, Ende mit
Edit
-
-// GetShell().Edit();
+ rView.ResetSubShell();
}
SwWrtShell& SwDrawTextShell::GetShell()
@@ -536,19 +524,18 @@ void SwDrawTextShell::ExecDraw(SfxReques
}
break;
- case FN_ESCAPE:
- if (pSdrView->IsTextEdit())
- {
- // Shellwechsel!
- rSh.EndTextEdit();
+ case FN_ESCAPE:
+ if (pSdrView->IsTextEdit())
+ {
+ // Shellwechsel!
+ rSh.EndTextEdit();
SwView& rTempView = rSh.GetView();
rTempView.ExitDraw();
- rSh.Edit();
- rTempView.AttrChangedNotify(&rSh);
- return;
- }
- break;
- case FN_DRAWTEXT_ATTR_DLG:
+ rSh.Edit();
+ return;
+ }
+ break;
+ case FN_DRAWTEXT_ATTR_DLG:
{
SfxItemSet aNewAttr(
pSdrView->GetModel()->GetItemPool() );
pSdrView->GetAttributes( aNewAttr );