draw sidebar: With the recent Jay's fixes, default to expanded sidebar too.

Change-Id: I5a05b116fbaac553adf7a87f88cf4bab19df39f0
This commit is contained in:
Jan Holesovsky
2015-04-17 14:02:22 +02:00
parent 7bcf913103
commit 0bdfe0f946

View File

@@ -50,10 +50,10 @@ SidebarChildWindow::SidebarChildWindow (
SfxDockingWindow* pDockingParent = dynamic_cast<SfxDockingWindow*>(pWindow);
if (pDockingParent != NULL)
{
if (pInfo && pInfo->aExtraString.isEmpty() && pInfo->aModule != "simpress")
if (pInfo && pInfo->aExtraString.isEmpty() && pInfo->aModule != "sdraw" && pInfo->aModule != "simpress")
{
// When this is the first start (never had the sidebar open yet),
// default to non-expanded sidebars in Writer, Calc, and Draw
// default to non-expanded sidebars in Writer and Calc.
//
// HACK: unfortunately I haven't found a clean solution to do
// this, so do it this way: