[Libreoffice-commits] .: sfx2/source

Noel Power noelp at kemper.freedesktop.org
Tue Aug 9 06:33:16 PDT 2011


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

New commits:
commit dbf832c5a5a33112f94766c7a872b228daaaa5ac
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.

diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx
index 9a2dbb7..0956c87 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


More information about the Libreoffice-commits mailing list