From 06357db79b7d189d09c430a4f4778f6a846ac3e4 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Fri, 19 Nov 2010 08:49:35 +0100 Subject: [PATCH] Change snapshot width to only show the first 4 cols --- gui/fittingView.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/fittingView.py b/gui/fittingView.py index ae459a85f..bc8caa6f4 100644 --- a/gui/fittingView.py +++ b/gui/fittingView.py @@ -376,15 +376,15 @@ class FittingView(d.Display): return True def Snapshot(self): - if self.FVsnapshot: del self.FVsnapshot + wantedWidth = 0 + for i in xrange(4): + wantedWidth += self.GetColumnWidth(i) rect = self.GetRect() - if rect.height >400: - rect.height = 400 - if rect.width > 576: - rect.width = 576 + rect.height = min(rect.height, 400) + rect.width = min(rect.width, wantedWidth) mdc = wx.MemoryDC() mbmp = wx.EmptyBitmap(rect.width, rect.height)