diff options
author | Peter Rabi <prabi@caesar.elte.hu> | 2011-08-06 18:51:52 +0200 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2011-08-09 14:29:18 +0100 |
commit | dbf832c5a5a33112f94766c7a872b228daaaa5ac (patch) | |
tree | fbd497ff27cd2162eb005ad09a67fc462b474eb9 /sfx2/source | |
parent | dce040cb325db554907c591ba673c9d2e6e8f21c (diff) |
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.
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/doc/new.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index 9a2dbb7189e5..0956c87ed56f 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -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 |