Kaydet (Commit) 499501e8 authored tarafından Tamás Zolnai's avatar Tamás Zolnai

MSForms: Update cursor position after the drop down form field was changed

Change-Id: I0e9e8a0e9212cdf539caa163f9071bc2f21e4c9f
Reviewed-on: https://gerrit.libreoffice.org/68959
Tested-by: Jenkins
Reviewed-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
üst 86d9b85f
...@@ -162,6 +162,10 @@ public: ...@@ -162,6 +162,10 @@ public:
READONLY = (1 << 3) ///< make visible in spite of Readonly READONLY = (1 << 3) ///< make visible in spite of Readonly
}; };
SAL_DLLPRIVATE void UpdateCursor(
sal_uInt16 eFlags = SwCursorShell::SCROLLWIN|SwCursorShell::CHKRANGE,
bool bIdleEnd = false );
private: private:
SwRect m_aCharRect; ///< Char-SRectangle on which the cursor is located SwRect m_aCharRect; ///< Char-SRectangle on which the cursor is located
...@@ -232,10 +236,6 @@ private: ...@@ -232,10 +236,6 @@ private:
SwFrame* m_oldColFrame; SwFrame* m_oldColFrame;
SAL_DLLPRIVATE void UpdateCursor(
sal_uInt16 eFlags = SwCursorShell::SCROLLWIN|SwCursorShell::CHKRANGE,
bool bIdleEnd = false );
SAL_DLLPRIVATE void MoveCursorToNum(); SAL_DLLPRIVATE void MoveCursorToNum();
SAL_DLLPRIVATE void ParkPams( SwPaM* pDelRg, SwShellCursor** ppDelRing ); SAL_DLLPRIVATE void ParkPams( SwPaM* pDelRg, SwShellCursor** ppDelRing );
......
...@@ -1385,6 +1385,7 @@ void SwTextShell::Execute(SfxRequest &rReq) ...@@ -1385,6 +1385,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
pDlg->Execute(); pDlg->Execute();
pFieldBM->Invalidate(); pFieldBM->Invalidate();
rWrtSh.InvalidateWindows( rWrtSh.GetView().GetVisArea() ); rWrtSh.InvalidateWindows( rWrtSh.GetView().GetVisArea() );
rWrtSh.UpdateCursor(); // cursor position might be invalid
} }
else else
{ {
......
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