fix for fdo#34768 - no update preview

Fixes dialogue "Load Slide Design" in Impress.
The preview now updates when selecting another template in the listbox.
Contributed under license LGPLv3+/MPL.
This commit is contained in:
Peter Rabi
2011-08-06 18:51:52 +02:00
committed by Noel Power
parent dce040cb32
commit dbf832c5a5

View File

@@ -378,6 +378,7 @@ IMPL_LINK( SfxNewFileDialog_Impl, RegionSelect, ListBox *, pBox )
aTemplateLb.SetUpdateMode(sal_True);
aTemplateLb.Invalidate();
aTemplateLb.Update();
TemplateSelect(&aTemplateLb);
return 0;
}
@@ -629,6 +630,7 @@ SfxNewFileDialog_Impl::SfxNewFileDialog_Impl(
if( nTokCount > 1 && nFlags )
aPreviewBtn.Check( rExtra.GetToken( 1 ,'|' ) == 'Y' );
aTemplateLb.SetSelectHdl(LINK(this, SfxNewFileDialog_Impl, TemplateSelect));
aTemplateLb.SetDoubleClickHdl(LINK(this, SfxNewFileDialog_Impl, DoubleClick));
// update the template configuration if necessary