You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2022/02/05 17:05:20 UTC
[openoffice] branch AOO42X updated: Remove 'old-style' shadow from Calc preview
This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO42X by this push:
new de5dd74 Remove 'old-style' shadow from Calc preview
de5dd74 is described below
commit de5dd74e540bdd3722f234dcbce4d226c232ca72
Author: mseidel <ms...@apache.org>
AuthorDate: Sat Feb 5 17:41:09 2022 +0100
Remove 'old-style' shadow from Calc preview
(cherry picked from commit 81443bbce0f0769fd08f4cdb529a424f1d36aeb7)
---
main/sc/source/ui/view/preview.cxx | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/main/sc/source/ui/view/preview.cxx b/main/sc/source/ui/view/preview.cxx
index 244da61..02ee2da 100644
--- a/main/sc/source/ui/view/preview.cxx
+++ b/main/sc/source/ui/view/preview.cxx
@@ -75,7 +75,7 @@
//==================================================================
-#define SC_PREVIEW_SHADOWSIZE 2
+//#define SC_PREVIEW_SHADOWSIZE 2
long lcl_GetDisplayStart( SCTAB nTab, ScDocument* pDoc, long* pPages )
{
@@ -548,22 +548,22 @@ void ScPreview::DoPrint( ScPreviewLocationData* pFillLocation )
// draw shadow
- SetLineColor();
- SetFillColor( aBorderColor );
+// SetLineColor();
+// SetFillColor( aBorderColor );
- Rectangle aPixel;
+// Rectangle aPixel;
- aPixel = LogicToPixel( Rectangle( nPageEndX, -aOffset.Y(), nPageEndX, nPageEndY ) );
- aPixel.Top() += SC_PREVIEW_SHADOWSIZE;
- aPixel.Right() += SC_PREVIEW_SHADOWSIZE - 1;
- aPixel.Bottom() += SC_PREVIEW_SHADOWSIZE - 1;
- DrawRect( PixelToLogic( aPixel ) );
+// aPixel = LogicToPixel( Rectangle( nPageEndX, -aOffset.Y(), nPageEndX, nPageEndY ) );
+// aPixel.Top() += SC_PREVIEW_SHADOWSIZE;
+// aPixel.Right() += SC_PREVIEW_SHADOWSIZE - 1;
+// aPixel.Bottom() += SC_PREVIEW_SHADOWSIZE - 1;
+// DrawRect( PixelToLogic( aPixel ) );
- aPixel = LogicToPixel( Rectangle( -aOffset.X(), nPageEndY, nPageEndX, nPageEndY ) );
- aPixel.Left() += SC_PREVIEW_SHADOWSIZE;
- aPixel.Right() += SC_PREVIEW_SHADOWSIZE - 1;
- aPixel.Bottom() += SC_PREVIEW_SHADOWSIZE - 1;
- DrawRect( PixelToLogic( aPixel ) );
+// aPixel = LogicToPixel( Rectangle( -aOffset.X(), nPageEndY, nPageEndX, nPageEndY ) );
+// aPixel.Left() += SC_PREVIEW_SHADOWSIZE;
+// aPixel.Right() += SC_PREVIEW_SHADOWSIZE - 1;
+// aPixel.Bottom() += SC_PREVIEW_SHADOWSIZE - 1;
+// DrawRect( PixelToLogic( aPixel ) );
}
}
}