[goffice] the fraction selector interface handles min_digits.
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] the fraction selector interface handles min_digits.
- Date: Wed, 24 Aug 2011 23:51:35 +0000 (UTC)
commit 073073959f8d018a17fa8c518f521c68569b05e3
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Wed Aug 24 17:50:59 2011 -0600
the fraction selector interface handles min_digits.
2011-08-24 Andreas J. Guelzow <aguelzow pyrshep ca>
* goffice/gtk/go-format-sel.c (study_format): the fraction selector
interface handles min_digits.
ChangeLog | 5 +++++
goffice/gtk/go-format-sel.c | 7 ++++---
2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 909c654..6a5150f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2011-08-24 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * goffice/gtk/go-format-sel.c (study_format): the fraction selector
+ interface handles min_digits.
+
+2011-08-24 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* goffice/utils/go-format.c (go_format_get_details): handle fractions
2011-08-24 Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/goffice/gtk/go-format-sel.c b/goffice/gtk/go-format-sel.c
index 4bb2814..ac96620 100644
--- a/goffice/gtk/go-format-sel.c
+++ b/goffice/gtk/go-format-sel.c
@@ -1020,9 +1020,10 @@ study_format (GOFormat const *fmt, GOFormatDetails *details)
!details->thousands_sep)
exact = FALSE;
- if ((details->min_digits > 1) ||
- (details->family != GO_FORMAT_SCIENTIFIC
- && details->min_digits == 0))
+ if ((details->family != GO_FORMAT_FRACTION)
+ && ((details->min_digits > 1) ||
+ (details->family != GO_FORMAT_SCIENTIFIC
+ && details->min_digits == 0)))
exact = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]