Kaydet (Commit) 7b75dc8c authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#90960 toggle out of paste-mode on editing an object

otherwise pressing return in the object goes to the
sheet and attempts to paste over the current cell

reproduce with insert->comment in A1, insert some text and
click in e.g. A5, ctrl c, right click on A1 and show comment,
double click on comment to edit, go to end of text and
press enter, either "bad things happen" if a11y is enabled
, or "nothing happens" instead of a new line appearing in
the object

Change-Id: Ie44851cf3394652e1a60eecb59a999889094b3c5
üst 452a06b7
...@@ -725,6 +725,12 @@ void FuText::SetInEditMode(SdrObject* pObj, const Point* pMousePixel, ...@@ -725,6 +725,12 @@ void FuText::SetInEditMode(SdrObject* pObj, const Point* pMousePixel,
//!?? ohne uebergebenen Outliner stimmen die Defaults nicht ???!? //!?? ohne uebergebenen Outliner stimmen die Defaults nicht ???!?
if ( pView->SdrBeginTextEdit(pObj, pPV, pWindow, true, pO) ) if ( pView->SdrBeginTextEdit(pObj, pPV, pWindow, true, pO) )
{ {
// Toggle out of paste mode if we are in it, otherwise
// pressing return in this object will instead go to the
// sheet and be considered an overwrite-cell instruction
pViewShell->GetViewData().SetPasteMode(SC_PASTE_NONE);
pViewShell->UpdateCopySourceOverlay();
// EditEngine-UndoManager anmelden // EditEngine-UndoManager anmelden
pViewShell->SetDrawTextUndo( &pO->GetUndoManager() ); pViewShell->SetDrawTextUndo( &pO->GetUndoManager() );
......
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