From d4867888572ff1cf3d5bbeaed8c68431f6834941 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Mon, 5 Mar 2007 05:50:20 +0000 Subject: 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) --- src/document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/document.cpp') 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; -- cgit v1.2.3