[Libreoffice-commits] .: extensions/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Nov 1 08:30:38 PDT 2010
extensions/source/scanner/sanedlg.cxx | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
New commits:
commit 9d9e34a0c0704388b718619eea0c74e533e178d0
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Nov 1 15:25:28 2010 +0000
rhbz#648475# crash in scanner dialog, reset link in dtor
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index 759c5c8..159c8af 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -133,6 +133,7 @@ SaneDlg::SaneDlg( Window* pParent, Sane& rSane ) :
SaneDlg::~SaneDlg()
{
+ mrSane.SetReloadOptionsHdl( maOldLink );
}
short SaneDlg::Execute()
@@ -479,14 +480,12 @@ IMPL_LINK( SaneDlg, ClickBtnHdl, Button*, pButton )
{
double fRes = (double)maReslBox.GetValue();
SetAdjustedNumericalValue( "resolution", fRes );
- mrSane.SetReloadOptionsHdl( maOldLink );
UpdateScanArea( TRUE );
SaveState();
EndDialog( mrSane.IsOpen() ? 1 : 0 );
}
else if( pButton == &maCancelButton )
{
- mrSane.SetReloadOptionsHdl( maOldLink );
mrSane.Close();
EndDialog( 0 );
}
@@ -689,9 +688,9 @@ IMPL_LINK( SaneDlg, ModifyHdl, Edit*, pEdit )
IMPL_LINK( SaneDlg, ReloadSaneOptionsHdl, Sane*, /*pSane*/ )
{
- mnCurrentOption = -1;
- mnCurrentElement = 0;
- DisableOption();
+ mnCurrentOption = -1;
+ mnCurrentElement = 0;
+ DisableOption();
// #92024# preserve preview rect, should only be set
// initially or in AcquirePreview
Rectangle aPreviewRect = maPreviewRect;
More information about the Libreoffice-commits
mailing list