From 8bc1a3cffedf41d6c5b5f82a50d3c55c704f2d71 Mon Sep 17 00:00:00 2001 From: Aleksei Kanash Date: Thu, 16 Feb 2012 11:16:27 +0200 Subject: [PATCH] Fix to SANKORE-508. --- src/board/UBBoardController.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index 4ca6aecb..9e787a8f 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -1166,10 +1166,11 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy, { emit activeDocumentChanged(); UBGraphicsTextItem::lastUsedTextColor = QColor(); - // Notify the navigator palette that the document has changed - emit setDocOnPageNavigator(pDocumentProxy); } + // Notify the navigator palette that the document has changed + emit setDocOnPageNavigator(pDocumentProxy); + if (sceneChange) { emit activeSceneChanged(); @@ -1984,7 +1985,7 @@ void UBBoardController::processMimeData(const QMimeData* pMimeData, const QPoint downloadURL(QUrl(qsTmp), pPos); } else{ - mActiveScene->addText(pMimeData->text(), pPos); + mActiveScene->addTextHtml(pMimeData->html(), pPos); } } else{