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