From 39e379006f31c3df42002c5e1f19fe6439d0f44b Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 14 May 2007 16:39:38 +0000 Subject: [PATCH] Minor tweak of scatter pie graph; Version bump to 0.3.3 git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@371 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/control/graph.cpp | 4 ++-- src/resource/msw/mse.rc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/control/graph.cpp b/src/gui/control/graph.cpp index 4584cab6..cf3b0a43 100644 --- a/src/gui/control/graph.cpp +++ b/src/gui/control/graph.cpp @@ -509,8 +509,8 @@ void ScatterPieGraph::draw(RotatedDC& dc, const vector& current, DrawLayer for (size_t y = 0 ; y < axis2.groups.size() ; ++y) { size_t i = x * axis2.groups.size() + y; UInt value = values[i]; - double radius = sqrt((double)value) * step; - RealSize radius_s(radius*2+1,radius*2+1); + double radius = floor(sqrt((double)value) * step * 2); + RealSize radius_s(radius,radius); RealPoint center(rect.left() + (x+0.5) * size.width + 0.5, rect.bottom() - (y+0.5) * size.height + 0.5); // draw pie slices double angle = 0; diff --git a/src/resource/msw/mse.rc b/src/resource/msw/mse.rc index 793439f3..1fa740b0 100644 --- a/src/resource/msw/mse.rc +++ b/src/resource/msw/mse.rc @@ -151,15 +151,15 @@ WXCURSOR_HAND CURSOR DISCARDABLE "wx/msw/hand.cur" // -------------------------------------------------------- : Version info 1 VERSIONINFO -FILEVERSION 0,3,2 -PRODUCTVERSION 0,3,2 +FILEVERSION 0,3,3 +PRODUCTVERSION 0,3,3 FILETYPE VFT_APP { BLOCK "StringFileInfo" { BLOCK "040904E4" { - VALUE "FileVersion", "0.3.2" + VALUE "FileVersion", "0.3.3" VALUE "License", "GNU General Public License 2 or later; This is free software, and you are welcome to redistribute it under certain conditions; See the help file for details" VALUE "FileDescription", "Magic Set Editor" VALUE "InternalName", "mse2/8"