[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sfx2/source

Noel Power noelp at kemper.freedesktop.org
Tue Aug 9 04:25:48 PDT 2011


 sfx2/source/doc/new.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6b6cc121c420f2b88e4087e3c2f8b882fda9c24c
Author: Peter Rabi <prabi at caesar.elte.hu>
Date:   Sat Aug 6 18:51:52 2011 +0200

    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 at novell.com>

diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx
index 0695d9d..45da7d7 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


More information about the Libreoffice-commits mailing list