Ticket #53516: wxwidgets.diff

File wxwidgets.diff, 488 bytes (added by chrisjogorman, 8 years ago)
  • Editor.cxx

    old new  
    1010#include <stdio.h>
    1111#include <ctype.h>
    1212#include <assert.h>
     13#include <math.h>
    1314
    1415#include <string>
    1516#include <vector>
     
    58415842}
    58425843
    58435844static bool Close(Point pt1, Point pt2) {
    5844         if (abs(pt1.x - pt2.x) > 3)
     5845        if (fabs(pt1.x - pt2.x) > 3)
    58455846                return false;
    5846         if (abs(pt1.y - pt2.y) > 3)
     5847        if (fabs(pt1.y - pt2.y) > 3)
    58475848                return false;
    58485849        return true;
    58495850}