Code

A simple layout document as to what, why and how is cppification.
[inkscape.git] / src / svg-view-widget.cpp
index 10d9976566f04a3fed2b3b6f720a35e7e8504939..a60c93f0bd70cb5ec201a6a81840c6e721c1d8c4 100644 (file)
@@ -149,8 +149,8 @@ sp_svg_view_widget_size_request (GtkWidget *widget, GtkRequisition *req)
                gdouble width, height;
 
                svgv = static_cast<SPSVGView*> (v);
-               width = sp_document_width (v->doc()) * svgv->_hscale;
-               height = sp_document_height (v->doc()) * svgv->_vscale;
+               width = (v->doc())->getWidth () * svgv->_hscale;
+               height = (v->doc())->getHeight () * svgv->_vscale;
 
                if (width <= vw->maxwidth) {
                        hpol = GTK_POLICY_NEVER;