]> git.saurik.com Git - wxWidgets.git/commitdiff
moved declaration of variable only used if wxUSE_GIF inside #if wxUSE_GIF block
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Jul 2005 23:33:27 +0000 (23:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Jul 2005 23:33:27 +0000 (23:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/m_image.cpp

index fd4ff2485563b930d07dcd0c9886412223ab5744..05fe9e123b04c3fcbc1e552db0fc70eb9db0276f 100644 (file)
@@ -372,9 +372,8 @@ wxHtmlImageCell::wxHtmlImageCell(wxWindow *window, wxFSFile *input,
 
             if ( s )
             {
-                bool readImg = true;
-
 #if wxUSE_GIF && wxUSE_TIMER
+                bool readImg = true;
                 if ( (input->GetLocation().Matches(wxT("*.gif")) ||
                       input->GetLocation().Matches(wxT("*.GIF"))) && m_window )
                 {