[LyX/master] Revert "Reduce top/bottom margin for Adv F&R workareas"

Jean-Marc Lasgouttes lasgouttes at lyx.org
Tue Feb 16 11:26:09 UTC 2021


commit 810b86560a8f0cf964a5ae1f263b56e976d76e6b
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Tue Feb 16 10:32:36 2021 +0100

    Revert "Reduce top/bottom margin for Adv F&R workareas"
    
    This reverts commit f41ca959fd531cd955bce778f2734f2a3ff1ee14.
---
 src/BufferView.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 0025277..9bafc8c 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -351,15 +351,15 @@ int BufferView::leftMargin() const
 
 int BufferView::topMargin() const
 {
-	// Original value was 20px at 100dpi. For internal buffers like in
-	// advanced search and replace, a value of 5px is enough.
-	return zoomedPixels(buffer().isInternal() ? 5 : 20);
+	// original value was 20px, which is 0.2in at 100dpi
+	return zoomedPixels(20);
 }
 
 
 int BufferView::bottomMargin() const
 {
-	return topMargin();
+	// original value was 20px, which is 0.2in at 100dpi
+	return zoomedPixels(20);
 }
 
 


More information about the lyx-cvs mailing list