summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-12-02 12:39:56 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2019-12-02 14:04:08 +0100
commit68a8467723f69f5ab61d2bee5e83984c5584af41 (patch)
tree5456bef87cb1b8908c49d9e036083863170f34cb /sc
parent42c81ea2f837940085552ebcf2a385eb23d5fd89 (diff)
tdf#129141: paint all when in multiline mode
... otherwise it assumes that only part of first string to the right of the unchanged string part needs redrawing (which would be to the right of the control itself) Change-Id: I2833c1eb2026041b11d0b72431b164d2ee3befef Reviewed-on: https://gerrit.libreoffice.org/84207 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputwin.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index dae95abdd797..b9ddf6219081 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1796,10 +1796,8 @@ void ScTextWnd::SetTextString( const OUString& rNewString )
// Find position of the change, only paint the rest
if (!mpEditEngine)
{
- bool bPaintAll;
- if ( bIsRTL )
- bPaintAll = true;
- else
+ bool bPaintAll = mnLines > 1 || bIsRTL;
+ if (!bPaintAll)
{
// test if CTL script type is involved
SvtScriptType nOldScript = SvtScriptType::NONE;
@@ -1817,7 +1815,7 @@ void ScTextWnd::SetTextString( const OUString& rNewString )
if ( bPaintAll )
{
- // if CTL is involved, the whole text has to be redrawn
+ // In multiline mode, or if CTL is involved, the whole text has to be redrawn
Invalidate();
}
else