Fix VS2005 compilation problem

This commit is contained in:
David Capello 2013-06-26 13:08:17 -03:00
parent 11d148c533
commit 406b4a1410

View File

@ -18,12 +18,12 @@
#include "config.h"
#include <math.h>
#include "raster/algo.h"
#include "raster/pen.h"
#include "raster/image.h"
#include <cmath>
Pen::Pen()
{
m_type = PEN_TYPE_CIRCLE;
@ -101,7 +101,7 @@ void Pen::regenerate_pen()
int size = m_size;
if (m_type == PEN_TYPE_SQUARE && m_angle != 0 && m_size > 2)
size = std::sqrt(2*m_size*m_size)+2;
size = std::sqrt((double)2*m_size*m_size)+2;
m_image = Image::create(IMAGE_BITMAP, size, size);