[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Wed Jun 15 19:36:39 CEST 2005
SVN commit 425829 by staikos:
M +10 -4 kst2dplot.cpp
--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #425828:425829
@@ -5658,8 +5658,11 @@
setHasFocus(true);
}
- if (e->source() && e->source() != view) {
- static_cast<KstViewWidget*>(e->source())->paint();
+ if (e->source() != view) {
+ KstViewWidget *vw = dynamic_cast<KstViewWidget*>(e->source());
+ if (vw) {
+ vw->paint();
+ }
}
setDirty();
@@ -5722,8 +5725,11 @@
setHasFocus(true);
}
- if (e->source() && e->source() != view) {
- static_cast<KstViewWidget*>(e->source())->paint();
+ if (e->source() != view) {
+ KstViewWidget *vw = dynamic_cast<KstViewWidget*>(e->source());
+ if (vw) {
+ vw->paint();
+ }
}
setDirty();
More information about the Kst
mailing list