summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-03-05 05:50:20 +0000
committermental <mental@users.sourceforge.net>2007-03-05 05:50:20 +0000
commitd4867888572ff1cf3d5bbeaed8c68431f6834941 (patch)
tree95fbc8812495b00ce09c6f7dc46610eeba9fc9ca /src/document.cpp
parentclean up operators/constructors, and give reference-maybes a more compact (diff)
downloadinkscape-d4867888572ff1cf3d5bbeaed8c68431f6834941.tar.gz
inkscape-d4867888572ff1cf3d5bbeaed8c68431f6834941.zip
Separate NRRect and NR::Rect a bit further; the goal is to get to the point where there is no way to create an empty NR::Rect
(bzr r2551)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 3579c4c91..ab6003167 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -494,7 +494,7 @@ gdouble sp_document_height(SPDocument *document)
*/
void SPDocument::fitToRect(NRRect const & rect)
{
- g_return_if_fail(!empty(rect));
+ g_return_if_fail(!nr_rect_d_test_empty(&rect));
gdouble w = rect.x1 - rect.x0;
gdouble h = rect.y1 - rect.y0;