From 53afac3ef7fb580afdb78ac3f2ad9b0365e4c5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Mon, 1 Dec 2003 17:08:03 +0000 Subject: [PATCH] INTEGRATION: CWS ooo20031110 (1.5.88); FILE MERGED 2003/11/11 13:01:27 waratah 1.5.88.1: #i22301# Correct for scoping rules --- extensions/source/scanner/sanedlg.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index 4268fa834fd5..3813c4747fef 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: sanedlg.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2003-04-17 15:14:35 $ + * last change: $Author: rt $ $Date: 2003-12-01 18:08:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1365,7 +1365,9 @@ void SaneDlg::SaveState() ByteString aString( "NUMERIC=" ); double fValue; char buf[256]; - for( int n = 0; n < mrSane.GetOptionElements( nOption ); n++ ) + int n; + + for( n = 0; n < mrSane.GetOptionElements( nOption ); n++ ) { if( ! mrSane.GetOptionValue( nOption, fValue, n ) ) break;