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 12:26:52 +0100 |
commit | 6b6cc121c420f2b88e4087e3c2f8b882fda9c24c (patch) | |
tree | a1a4f77704626f6dee970ec539f65dc266437150 | |
parent | fd0c48dd0909c4151de5c23f1505535307943dc1 (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.
Signed-off-by: Noel Power <noel.power@novell.com>
-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 0695d9df43..45da7d7c0e 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -398,6 +398,7 @@ IMPL_LINK( SfxNewFileDialog_Impl, RegionSelect, ListBox *, pBox ) aTemplateLb.SetUpdateMode(sal_True); aTemplateLb.Invalidate(); aTemplateLb.Update(); + TemplateSelect(&aTemplateLb); return 0; } @@ -649,6 +650,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 |