Code

Add a zoom correction option to preferences (used when zooming to 1:1 etc. to display...
[inkscape.git] / src / ui / dialog / session-player.cpp
index 97ef5618e56cb0747dc71d70749fff00bf29d883..b378c0b5a96500a7cff365b687094ea387c7c171 100644 (file)
@@ -50,7 +50,7 @@ SessionPlaybackDialog::create()
 SessionPlaybackDialogImpl::SessionPlaybackDialogImpl() 
        : _delay(100, 1, 5000, 10, 100), _delayentry(_delay)
 {
-       this->_desktop = SP_ACTIVE_DESKTOP;
+        this->_desktop = this->getDesktop();
        this->_sm = this->_desktop->whiteboard_session_manager();
        this->_sfp = this->_sm->session_player();
        this->_openfile.set_text(this->_sfp->filename());
@@ -182,7 +182,8 @@ SessionPlaybackDialogImpl::_respCallback(int resp)
                        switch (result) {
                                case Gtk::RESPONSE_OK:
                                        this->_sm->clearDocument();
-                                       sp_document_done(sp_desktop_document(this->_desktop));
+                                       sp_document_done(sp_desktop_document(this->_desktop), SP_VERB_NONE, 
+                                                        /* TODO: annotate */ "session-player.cpp:186");
                                        this->_sm->loadSessionFile(sessionfiledlg.get_filename());
                                        this->_openfile.set_text(this->_sfp->filename());
                                        break;