diff options
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/doc/new.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index d6d45c7f14e5..ed196a0a384d 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -184,7 +184,8 @@ IMPL_LINK( SfxNewFileDialog, RegionSelect, weld::TreeView&, rBox, void ) for (sal_uInt16 i = 0; i < nCount; ++i) m_xTemplateLb->append_text(m_aTemplates.GetName(nRegion, i)); m_xTemplateLb->thaw(); - m_xTemplateLb->select(0); + if (nCount) + m_xTemplateLb->select(0); TemplateSelect(*m_xTemplateLb); } |