diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-06-09 15:08:41 +0200 |
---|---|---|
committer | Aron Budea <aron.budea@collabora.com> | 2022-06-13 14:55:37 +0200 |
commit | 3671b83d1c13dc1e05615bee745999b5c2d84df6 (patch) | |
tree | 2788be51eb2fa08abc0bbef55a5ebf847a418303 /editeng | |
parent | 0395daea463c28473466285c25638e870c7bb851 (diff) |
remove incorrect #ifdef DBG_UTIL around normal code (tdf#149476)
This code sets sufficient size for the virtual device that saves
the content, so it's not some optional debug code. Without this
selecting text in Calc formula bar and dragging it around leaves
artifacts, because the saved content is not large enough to restore
the original widget content. This dates back to
d51fe1189dcbe0fe06805c8d99687c125cd254eb, which supposedly made
the code warning-free (and also correct-free).
Change-Id: I52dab8c8d3a083fff9da8aed27facdf21076622e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135555
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
(cherry picked from commit dabf52b81621f1cbff508dfb7ae2e92597e521c3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135536
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 8c373127d3db..344f9a24ba03 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -2177,9 +2177,6 @@ void ImpEditView::ShowDDCursor( const tools::Rectangle& rRect ) aSaveRect.AdjustRight(1 ); aSaveRect.AdjustBottom(1 ); -#ifdef DBG_UTIL - Size aNewSzPx( aSaveRect.GetSize() ); -#endif if ( !pDragAndDropInfo->pBackground ) { pDragAndDropInfo->pBackground = VclPtr<VirtualDevice>::Create(rOutDev); @@ -2189,14 +2186,13 @@ void ImpEditView::ShowDDCursor( const tools::Rectangle& rRect ) } -#ifdef DBG_UTIL + Size aNewSzPx( aSaveRect.GetSize() ); Size aCurSzPx( pDragAndDropInfo->pBackground->GetOutputSizePixel() ); if ( ( aCurSzPx.Width() < aNewSzPx.Width() ) ||( aCurSzPx.Height() < aNewSzPx.Height() ) ) { bool bDone = pDragAndDropInfo->pBackground->SetOutputSizePixel( aNewSzPx ); DBG_ASSERT( bDone, "Virtual Device broken?" ); } -#endif aSaveRect = rOutDev.PixelToLogic( aSaveRect ); |