From: tiennou <tie...@gm...> - 2007-03-16 13:10:50
|
Le 13 mars 07 =C3=A0 11:56, Tito Dal Canton a =C3=A9crit : > I noticed that the new ShapeFusion doesn't handle non-shapes files =20 > very > well. I added a check for too small files (I also backported it to =20 > 0.3) > but the problem is another. It's the fact that if ShapesDocument fails > to load a shapes file, nobody will care and ShapeFusion will crash. I > guess we have to return false somewhere to tell about loading =20 > failures. > But where? I could not find it within my wxDoc documentation. I got it working ;-). I' ve just overriden DoOpenDocument from =20 wxDocument to look at our mGoodData before telling that everything =20 went right... Others changes are that as soon as an error is reported, loading =20 stops, as currently we were still trying to load after an error... tiennou |