To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=103373





------- Additional comments from o...@openoffice.org Mon Jul 20 12:24:52 +0000 
2009 -------
->mod: There is some odd behaviour when drawings are selected. The code you call
can only be executed in text mode. To achieve this the drawing or frame
selection must be removed and the TextShell need to be put on top of the
dispatcher stack. The changes below do that (for deletion of notes from a
certain author only)
Jumping to a text content using double click in the Navigator also doesn't work
when a drawing is selected.


Index: source/ui/docvw/postit.cxx
===================================================================
--- source/ui/docvw/postit.cxx  (revision 273580)
+++ source/ui/docvw/postit.cxx  (working copy)
@@ -1311,6 +1311,16 @@
                case FN_DELETE_NOTE_AUTHOR:
                case FN_HIDE_NOTE_AUTHOR:
                {
+            SwWrtShell& rSh = mpView->GetWrtShell();
+            if( rSh.IsSelFrmMode() || rSh.IsObjSelected())
+            {
+                rSh.UnSelectFrm();
+                rSh.LeaveSelFrmMode();
+                rSh.EnterStdMode();

+                rSh.DrawSelChanged();

+                mpView->StopShellTimer();
+            }
+
                        // not possible as slot as this would require that 
"this" is the active postit
                        SfxStringItem aItem( nSlot, GetAuthor() );
                        const SfxPoolItem* aItems[2];
Index: source/ui/wrtsh/select.cxx
===================================================================
--- source/ui/wrtsh/select.cxx  (revision 273257)
+++ source/ui/wrtsh/select.cxx  (working copy)
@@ -337,6 +337,7 @@
     // Rahmenselektion aufheben mit garantiert ungueltiger Position
        Point aPt(LONG_MIN, LONG_MIN);
     SelectObj(aPt, 0);
+    GetView().LeaveDrawCreate();
        SwTransferable::ClearSelection( *this );
 }
 


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to