]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
Do not propagate key events from child controls unless they have modifiers
[wxWidgets.git] / src / xrc / xmlres.cpp
index fc16e6ec42b115c1fd5c40a33f2afd40ef38b748..ae88b743580192e411cc0809113f8511ecb8ae79 100644 (file)
@@ -497,7 +497,7 @@ bool wxXmlResource::UpdateResources()
                 delete rec->Doc;
                 rec->Doc = new wxXmlDocument;
             }
-            if (!stream || !rec->Doc->Load(*stream, encoding))
+            if (!stream || !stream->IsOk() || !rec->Doc->Load(*stream, encoding))
             {
                 wxLogError(_("Cannot load resources from file '%s'."),
                            rec->File);