summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/canvas/framed_curve.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/canvas/framed_curve.cc b/libs/canvas/framed_curve.cc
index c5b2d6de22..4e7b4a8796 100644
--- a/libs/canvas/framed_curve.cc
+++ b/libs/canvas/framed_curve.cc
@@ -176,8 +176,6 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
context->fill ();
break;
}
- context->restore ();
-
} else {
/* curve of at least 3 points */
@@ -251,8 +249,8 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
context->fill ();
break;
}
- context->restore ();
}
+ context->restore ();
#if 0
/* add points */