There was a segfault dt_width/dt_height when an ImageObject was created with a non...
commita8f2aa405c56dfb3b6fe2ac96df656253be0482b
authormazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Thu, 6 Sep 2007 18:14:32 +0000 (6 18:14 +0000)
committermazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Thu, 6 Sep 2007 18:14:32 +0000 (6 18:14 +0000)
tree6e1782683d43f8c46a3c0a2c8447aae6b77ee5a5
parent22b405e987097b0cb63335b68131f9c500df1e18
There was a segfault dt_width/dt_height when an ImageObject was created with a non-existing image,
e.g. MUIA_Image_Spec, "5:i_dont_exist.iff"
This fix checks if struct dt_node* is valid, otherwise it returns 0.

git-svn-id: https://svn.aros.org:8080/svn/aros/trunk/AROS@26501 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
workbench/libs/muimaster/datatypescache.c