[Top][All Lists]

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

[Octave-bug-tracker] [bug #57651] Second print command results in differ

From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #57651] Second print command results in different marker size
Date: Thu, 23 Jan 2020 14:49:12 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0

Follow-up Comment #6, bug #57651 (project octave):

Yeah, you are right, the paperposition has to be updated manually since its
default value differs from the one that we should have. 

The following diff is not very elegant but does the trick:

diff -r eaca8df57328 libinterp/corefcn/graphics.in.h
--- a/libinterp/corefcn/graphics.in.h   Thu Jan 23 19:07:50 2020 +0000
+++ b/libinterp/corefcn/graphics.in.h   Thu Jan 23 20:47:51 2020 +0100
@@ -3262,6 +3262,13 @@
     // here, we just call its set function and let it decide which
     // properties from the list to use.
     obj.set_from_list (default_properties);
+    // Now make sure the paperposition is correct
+    if (xproperties.get ("paperpositionmode").string_value () == "auto")
+      {
+        xproperties.set ("paperpositionmode", "manual");
+        xproperties.set ("paperpositionmode", "auto");
+      }
   void set (const caseless_str& name, const octave_value& value)


Reply to this item at:


  Message posté via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]