Skip to content

Commit

Permalink
Fix a drawing error in contour plots. [#458]
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrefort committed Jan 11, 2020
1 parent 05fdede commit 3d376f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2020-01-11 Jean Brefort <jean.brefort@normalesup.org>

* plugins/plot_surface/gog-contour.c (gog_contour_view_render): fix a
drawing error in contour plots. Fix #458

2019-12-13 Jean Brefort <jean.brefort@normalesup.org>

* goffice/graph/gog-series-labels.c (gog_series_labels_update):
Expand Down
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ goffice 0.10.47:
Jean:
* Fix crash if a XY plot series has data labels but no valid data. [#426]
* Fix criticals related to data labels. [#428]
* Fix a drawing error in contour plots. [#458]

Morten:
* Fix library namespace issue.
Expand Down
6 changes: 5 additions & 1 deletion plugins/plot_surface/gog-contour.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,11 @@ gog_contour_view_render (GogView *view, GogViewAllocation const *bbox)
}
} else {
k = 0;
for (s = 0; s < 8; s++) {
if (xl[0] < 0)
go_path_move_to (path, x[0], y[0]);
else
go_path_move_to (path, xl[0], yl[0]);
for (s = 1; s < 8; s++) {
if (xl[s] < 0.) {
if (s == 7)
break;
Expand Down

0 comments on commit 3d376f3

Please sign in to comment.