Fixed another smart pointer bug (assignment operator copied ref count);

Fixed symbol editor grid

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@385 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-05-16 19:18:16 +00:00
parent 738f5f962e
commit d2fe3b6ba0
2 changed files with 15 additions and 22 deletions
+2 -2
View File
@@ -150,9 +150,9 @@ void SymbolControl::draw(DC& dc) {
// draw grid
if (settings.symbol_grid) {
wxSize s = dc.GetSize();
int lines = settings.symbol_grid_size;
double lines = settings.symbol_grid_size;
for (int i = 0 ; i <= lines ; ++i) {
int x = (int) rotation.trS(i/lines-0.0001);
int x = floor(rotation.trS(i/lines-0.0001));
//dc.SetPen(Color(0, i%5 == 0 ? 64 : 31, 0));
//dc.SetPen(Color(i%5 == 0 ? 64 : 31, 0, 0));
dc.SetLogicalFunction(wxAND);