CVSROOT: /cvsroot/lilypond
Module name: lilypond
Branch:
Changes by: Han-Wen Nienhuys <[EMAIL PROTECTED]> 05/06/10 13:08:01
Modified files:
. : ChangeLog
flower : string-convert.cc
Log message:
(precision_string): >? fix.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ChangeLog.diff?tr1=1.3760&tr2=1.3761&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/flower/string-convert.cc.diff?tr1=1.31&tr2=1.32&r1=text&r2=text
Patches:
Index: lilypond/ChangeLog
diff -u lilypond/ChangeLog:1.3760 lilypond/ChangeLog:1.3761
--- lilypond/ChangeLog:1.3760 Fri Jun 10 12:59:05 2005
+++ lilypond/ChangeLog Fri Jun 10 13:08:00 2005
@@ -1,5 +1,7 @@
2005-06-10 Han-Wen Nienhuys <[EMAIL PROTECTED]>
+ * flower/string-convert.cc (precision_string): >? fix.
+
* scm/ps-to-png.scm (make-ps-images): search-gs for multipage too.
(make-ps-images): add verbose -q too.
Index: lilypond/flower/string-convert.cc
diff -u lilypond/flower/string-convert.cc:1.31
lilypond/flower/string-convert.cc:1.32
--- lilypond/flower/string-convert.cc:1.31 Sat Apr 30 23:43:03 2005
+++ lilypond/flower/string-convert.cc Fri Jun 10 13:08:01 2005
@@ -285,7 +285,7 @@
String
String_convert::precision_string (double x, int n)
{
- String format = "%." + to_string (0 >? n - 1) + "e";
+ String format = "%." + to_string (max (0, n - 1)) + "e";
String str = double_string (abs (x), format.to_str0 ());
int exp = str.right_string (3).to_int ();
_______________________________________________
Lilypond-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-cvs