summaryrefslogtreecommitdiffstats
path: root/src/libnr
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnr')
-rw-r--r--src/libnr/nr-rect.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h
index fc4d617df..5d897c695 100644
--- a/src/libnr/nr-rect.h
+++ b/src/libnr/nr-rect.h
@@ -252,7 +252,9 @@ struct NRMatrix;
/* NULL rect is infinite */
struct NRRect {
- NRRect() {}
+ NRRect()
+ : x0(0), y0(0), x1(0), y1(0)
+ {}
NRRect(NR::Coord xmin, NR::Coord ymin, NR::Coord xmax, NR::Coord ymax)
: x0(xmin), y0(ymin), x1(xmax), y1(ymax)
{}