summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 045eef3)
raw | patch | inline | side by side (parent: 045eef3)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 25 Feb 2008 10:08:07 +0000 (10:08 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 25 Feb 2008 10:08:07 +0000 (10:08 +0000) |
src/sp-rect.cpp | patch | blob | history |
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp
index cf399d3241159e3d8daa6fc68f31f9c9fdedd67e..55d2a3fde3b1fb14fff46d1e8446552f75ccb86e 100644 (file)
--- a/src/sp-rect.cpp
+++ b/src/sp-rect.cpp
{
SPRect *rect = (SPRect *) shape;
- if ((rect->height.computed < 1e-18) || (rect->width.computed < 1e-18)) return;
+ if ((rect->height.computed < 1e-18) || (rect->width.computed < 1e-18)) {
+ sp_shape_set_curve_insync(SP_SHAPE(rect), NULL, TRUE);
+ return;
+ }
SPCurve *c = sp_curve_new();