diff options
-rw-r--r-- | sfx2/source/view/classificationcontroller.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/view/classificationcontroller.cxx b/sfx2/source/view/classificationcontroller.cxx index 0e861a10b21b..737eefd351af 100644 --- a/sfx2/source/view/classificationcontroller.cxx +++ b/sfx2/source/view/classificationcontroller.cxx @@ -134,6 +134,11 @@ void ClassificationCategoriesController::statusChanged(const frame::FeatureState // Normally VclBuilder::makeObject() does this. m_pCategories->EnableAutoSize(true); m_pCategories->SetSizePixel(m_pCategories->GetOptimalSize()); + + // Restore state based on the doc. model. + const OUString& rCategoryName = aHelper.GetBACName(); + if (!rCategoryName.isEmpty()) + m_pCategories->SelectEntry(rCategoryName); } } // namespace sfx2 |