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 16:42:29 UTC

[openoffice] branch trunk 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 trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 81443bb  Remove 'old-style' shadow from Calc preview
81443bb is described below

commit 81443bbce0f0769fd08f4cdb529a424f1d36aeb7
Author: mseidel <ms...@apache.org>
AuthorDate: Sat Feb 5 17:41:09 2022 +0100

    Remove 'old-style' shadow from Calc preview
---
 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 ) );
 		}
 	}
 }