From e06bd23b4ea879031c228c02b4dfebcd48750a70 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 20 Feb 2013 19:54:00 -0300 Subject: [PATCH] Fix bug where palette isn't correctly set when the DocumentView is changed --- src/ui_context.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui_context.cpp b/src/ui_context.cpp index 12be84cb7..45a9779f0 100644 --- a/src/ui_context.cpp +++ b/src/ui_context.cpp @@ -79,6 +79,9 @@ void UIContext::setActiveView(widgets::DocumentView* docView) setActiveDocument(docView ? docView->getDocument(): NULL); App::instance()->getMainWindow()->getMiniEditor()->updateUsingEditor(current_editor); + + // Restore the palette of the selected document. + app_refresh_screen(docView ? docView->getDocument(): NULL); } size_t UIContext::countViewsOf(Document* document) const