[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosi
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value |
Date: |
Wed, 28 Feb 2018 17:21:57 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #53197 (project octave):
Status: Confirmed => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #15:
I reviewed and committed the patch here
(http://hg.savannah.gnu.org/hgweb/octave/rev/a802e644937a).
I modified the search/replace code slightly to that below.
srchstr[pos+1] = 't'; // "px" -> "pt"
// Assume the second occurrence is at the same line
pos = srchstr.find ("px", pos);
srchstr[pos+1] = 't'; // "px" -> "pt"
std::strcpy (str, srchstr.c_str ());
Instead of using the .replace() member function of strings I used direct
access [] to replace the single character in question. Also, rather than
start the second search from position 0, I started it from the existing
position to be a bit more efficient.
Marking bug as fixed.
@Michael: I'm not sure about the status of some of your comments in this
report. Do you want to file another bug report about the lack of
documentation for pdfwriter and cropping?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53197>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, (continued)
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Pantxo Diribarne, 2018/02/21
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Michael Godfrey, 2018/02/21
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Rik, 2018/02/21
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Michael Godfrey, 2018/02/21
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Michael Godfrey, 2018/02/22
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Rik, 2018/02/26
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Pantxo Diribarne, 2018/02/27
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Rik, 2018/02/27
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Pantxo Diribarne, 2018/02/28
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value, Pantxo Diribarne, 2018/02/28
- [Octave-bug-tracker] [bug #53197] Size of svg output is 75% of PaperPosition value,
Rik <=