Closed evgeny-k closed 12 years ago
This will happen if the file is not found, it was setting the image width/height to zero which then threw an exception when calculating sizes on the cell. The Mac platform will now throw an exception when the file is not found when creating the icon or bitmap. Also, there are now checks so that the image will just not be shown if the image width or height is zero.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Eto; using Eto.Forms; using Eto.Drawing; using System.Threading;
namespace etotest { class Program { [STAThread] static void Main(string[] args) { //var generator = Generator.GetGenerator("Eto.Platform.Wpf.Generator, Eto.Platform.Wpf"); var generator = Generator.GetGenerator("Eto.Platform.Mac.Generator, Eto.Platform.Mac"); var app = new TestApplication(generator); app.Run(args); } }
}
windows: http://screencast.com/t/J6joIgg613o macosx: http://screencast.com/t/2ZAvzEW6MX