diff --git a/src/widgets/icon.cpp b/src/widgets/icon.cpp
index e90cc1c4687e3f14cd85fc5b50a173b35bb4c84f..570502253cc7601e241cd4883b7847d8123223ec 100644 (file)
--- a/src/widgets/icon.cpp
+++ b/src/widgets/icon.cpp
if ( SP_OBJECT_PARENT(object) == NULL )
{
dbox = Geom::Rect(Geom::Point(0, 0),
- Geom::Point(sp_document_width(doc), sp_document_height(doc)));
+ Geom::Point(doc->getWidth(), doc->getHeight()));
}
/* This is in document coordinates, i.e. pixels */
/* Try to load from document. */
if (!info &&
Inkscape::IO::file_test( doc_filename, G_FILE_TEST_IS_REGULAR ) &&
- (doc = SPDocument::createDoc( doc_filename, FALSE )) ) {
+ (doc = SPDocument::createNewDoc( doc_filename, FALSE )) ) {
//g_message("Loaded icon file %s", doc_filename);
// prep the document
- sp_document_ensure_up_to_date(doc);
+ doc->ensure_up_to_date();
/* Create new arena */
NRArena *arena = NRArena::create();
/* Create ArenaItem and set transform */