projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e9a4b51
)
call SetAnimation() from the ctor instead of just assigning m_animation directly...
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 12 Nov 2006 22:16:58 +0000
(22:16 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 12 Nov 2006 22:16:58 +0000
(22:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43378
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/generic/animateg.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/generic/animateg.cpp
b/src/generic/animateg.cpp
index 4f793eac482f1272336ad7e8f19d8a9d8bdcdbfc..c7e55f4f92e862dbd0d582e85f10f229dcf6fca7 100644
(file)
--- a/
src/generic/animateg.cpp
+++ b/
src/generic/animateg.cpp
@@
-288,7
+288,6
@@
bool wxAnimationCtrl::Create(wxWindow *parent, wxWindowID id,
const wxAnimation& animation, const wxPoint& pos,
const wxSize& size, long style, const wxString& name)
{
- m_animation = animation;
m_timer.SetOwner(this);
if (!base_type::Create(parent, id, pos, size, style, wxDefaultValidator, name))
@@
-296,6
+295,9
@@
bool wxAnimationCtrl::Create(wxWindow *parent, wxWindowID id,
// by default we get the same background colour of our parent
SetBackgroundColour(parent->GetBackgroundColour());
+
+ SetAnimation(animation);
+
return true;
}