diff options
author | Aron Budea <aron.budea@collabora.com> | 2019-10-20 03:14:42 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-10-21 13:57:48 +0200 |
commit | f900c896697386fcc82b51f3f9ab3c8a84fdbb67 (patch) | |
tree | b4ccf8c0e01b899712b3db0e0526d3eb21390c9e /sc/source/ui/undo/undoutil.cxx | |
parent | 0c1ab11c9fa24eb2d4a4d08387d314e04c0aafee (diff) |
sc: rowcol: tdf#50916 convert ui/undo
Change-Id: I93ad2bbcf95ab136b9ce4df58e2849980e97d5fd
Reviewed-on: https://gerrit.libreoffice.org/81146
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc/source/ui/undo/undoutil.cxx')
-rw-r--r-- | sc/source/ui/undo/undoutil.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/undo/undoutil.cxx b/sc/source/ui/undo/undoutil.cxx index 66e97af2cade..d89905cbd685 100644 --- a/sc/source/ui/undo/undoutil.cxx +++ b/sc/source/ui/undo/undoutil.cxx @@ -100,10 +100,11 @@ void ScUndoUtil::PaintMore( ScDocShell* pDocShell, SCROW nRow1 = rRange.aStart.Row(); SCCOL nCol2 = rRange.aEnd.Col(); SCROW nRow2 = rRange.aEnd.Row(); + ScDocument& rDoc = pDocShell->GetDocument(); if (nCol1 > 0) --nCol1; if (nRow1 > 0) --nRow1; - if (nCol2<MAXCOL) ++nCol2; - if (nRow2<MAXROW) ++nRow2; + if (nCol2<rDoc.MaxCol()) ++nCol2; + if (nRow2<rDoc.MaxRow()) ++nRow2; pDocShell->PostPaint( nCol1,nRow1,rRange.aStart.Tab(), nCol2,nRow2,rRange.aEnd.Tab(), PaintPartFlags::Grid ); |