From: tiennou <tie...@gm...> - 2007-03-13 20:15:15
|
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 was having this thought while moving this stuff to Doc/View =20 framework... I guess it's possible to check for IsGood() at the end =20 of the loading, but that's right that's there is no obvious way of =20 telling that there is an error... I guess this need is enforced by the templates system, but I was =20 reluctant to put it completely in work, because it prevented me from =20 reading files that didn't ended in .shp2 (assuming that's the correct =20= extension...), nor using the Mac OS Type/Creator pair, because most =20 scenarios often have their own creator code... I'll ask in the wx-users Mailing list though... tiennou= |