[simple-scan/cherry-pick-8b68ad8a] Change the size of the paper to avoid visual glitches



commit 4f4c6c42e8c00480f41935a43a419ad41bc4d7e4
Author: Bartosz Kosiorek <gang65 poczta onet pl>
Date:   Mon May 25 22:33:26 2020 +0000

    Change the size of the paper to avoid visual glitches
    
    Fixes: #179
    
    
    (cherry picked from commit 8b68ad8a8cab3021dbbbccc793c78e74cf1aa440)

 src/simple-scan.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/simple-scan.vala b/src/simple-scan.vala
index fc9b101..771dc82 100644
--- a/src/simple-scan.vala
+++ b/src/simple-scan.vala
@@ -1536,7 +1536,8 @@ public class SimpleScan : Gtk.Application
         debug ("Requesting scan at %d dpi from device '%s'", options.dpi, device);
 
         if (!scanner.is_scanning ())
-            append_page (options.paper_width, options.paper_height, options.dpi);
+            // We need to add +1 to avoid visual glitches, fixes: #179
+            append_page (options.paper_width + 1, options.paper_height + 1, options.dpi + 1);
 
         scanner.scan (device, options);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]