[goffice] Don't use badly rounded values when clipping markers. [#649485]
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Don't use badly rounded values when clipping markers. [#649485]
- Date: Fri, 6 May 2011 06:24:58 +0000 (UTC)
commit 36d5786aa4b3baf2b7bea6dce143f41717689afb
Author: Jean Brefort <jean brefort normalesup org>
Date: Fri May 6 08:24:27 2011 +0200
Don't use badly rounded values when clipping markers. [#649485]
ChangeLog | 5 +++++
NEWS | 1 +
goffice/utils/go-marker.c | 4 ++--
3 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8875851..af13161 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-06 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/utils/go-marker.c (go_marker_create_cairo_surface): don't
+ use badly rounded values when clipping markers. [#649485]
+
2011-04-16 Jean Brefort <jean brefort normalesup org>
* goffice/utils/go-geometry.c (go_direction_get_type),
diff --git a/NEWS b/NEWS
index 91cfc59..f74dbd8 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ Jean:
* Fixed closed bezier spline evaluation. [#646700]
* Implement dropbar plots with linear or logarithmic index axis. [#646832]
* Fix legends for plots with marker only style. [#647367]
+ * Don't use badly rounded values when clipping markers. [#649485]
Morten:
* Plug leaks.
diff --git a/goffice/utils/go-marker.c b/goffice/utils/go-marker.c
index ee50f27..d00b90d 100644
--- a/goffice/utils/go-marker.c
+++ b/goffice/utils/go-marker.c
@@ -313,8 +313,8 @@ go_marker_create_cairo_surface (GOMarker const *marker, cairo_t *cr, double scal
cr_surface = cairo_surface_create_similar (current_cr_surface,
CAIRO_CONTENT_COLOR_ALPHA,
- 2.0 * offset,
- 2.0 * offset);
+ ceil (2.0 * offset),
+ ceil (2.0 * offset));
cr_tmp = cairo_create (cr_surface);
go_marker_render (marker, cr_tmp, offset, offset, scale);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]