]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/animateg.cpp
Don't force ColWidth to always grow for wxGridCellAutoWrapStringRenderer (#1798)
[wxWidgets.git] / src / generic / animateg.cpp
index 17605f1af85d68d8e04118313ac94c87dcdf6515..a2a50f94be6e9a1146bd51cb50d1f85eb0dbe566 100644 (file)
@@ -307,10 +307,15 @@ wxAnimationCtrl::~wxAnimationCtrl()
 }
 
 bool wxAnimationCtrl::LoadFile(const wxString& filename, wxAnimationType type)
+{
+    wxFileInputStream fis(filename);
+    return Load(fis, type);
+}
+
+bool wxAnimationCtrl::Load(wxInputStream& stream, wxAnimationType type)
 {
     wxAnimation anim;
-    if (!anim.LoadFile(filename, type) ||
-        !anim.IsOk())
+    if ( !anim.Load(stream, type) || !anim.IsOk() )
         return false;
 
     SetAnimation(anim);