Merge pull request #1003 from peetCreative/build_debian

specify abs to std library
presentation
Ulrich Huber 7 years ago committed by GitHub
commit ae61d2319a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/control/PrintHandler.cpp
  2. 2
      src/control/shaperecognizer/CircleRecognizer.cpp
  3. 2
      src/control/shaperecognizer/Inertia.cpp
  4. 2
      src/control/shaperecognizer/RecoSegment.cpp
  5. 2
      src/control/shaperecognizer/ShapeRecognizer.cpp
  6. 2
      src/control/tools/EditSelection.cpp
  7. 10
      src/control/tools/EditSelectionContents.cpp
  8. 2
      src/control/tools/EraseHandler.cpp
  9. 2
      src/control/tools/InputHandler.cpp
  10. 2
      src/control/tools/StrokeHandler.cpp
  11. 1
      src/gui/PageView.cpp
  12. 2
      src/gui/XournalView.cpp
  13. 2
      src/gui/toolbarMenubar/ColorToolItem.cpp
  14. 2
      src/gui/toolbarMenubar/icon/ColorSelectImage.cpp
  15. 1
      src/gui/widgets/XournalWidget.cpp
  16. 2
      src/model/Stroke.cpp
  17. 2
      src/model/eraser/EraseableStroke.cpp

@ -6,7 +6,7 @@
#include "model/Document.h"
#include "view/DocumentView.h"
#include <math.h>
#include <cmath>
PrintHandler::PrintHandler()
{

@ -4,7 +4,7 @@
#include "ShapeRecognizerConfig.h"
#include "model/Stroke.h"
#include <math.h>
#include <cmath>
/**
* Create circle stroke for inertia

@ -2,7 +2,7 @@
#include "model/Point.h"
#include <math.h>
#include <cmath>
Inertia::Inertia()
{

@ -2,7 +2,7 @@
#include "Inertia.h"
#include <math.h>
#include <cmath>
#include <stdlib.h>
RecoSegment::RecoSegment()

@ -8,7 +8,7 @@
#include <config-debug.h>
#include <math.h>
#include <cmath>
ShapeRecognizer::ShapeRecognizer()
{

@ -21,7 +21,7 @@
#include <serializing/ObjectOutputStream.h>
#include <serializing/ObjectInputStream.h>
#include <math.h>
#include <cmath>
EditSelection::EditSelection(UndoRedoHandler* undo, PageRef page, XojPageView* view)
{

@ -402,7 +402,7 @@ void EditSelectionContents::finalizeSelection(double x, double y, double width,
fy = f;
}
bool scale = (width != this->originalWidth || height != this->originalHeight);
bool rotate = (abs(this->rotation) > __DBL_EPSILON__);
bool rotate = (std::abs(this->rotation) > __DBL_EPSILON__);
double mx = x - this->originalX;
double my = y - this->originalY;
@ -465,7 +465,7 @@ void EditSelectionContents::updateContent(double x, double y, double rotation, d
}
bool scale = (width != this->lastWidth || height != this->lastHeight);
bool rotate = (abs(this->rotation) > __DBL_EPSILON__);
bool rotate = (std::abs(this->rotation) > __DBL_EPSILON__);
if (type == CURSOR_SELECTION_MOVE)
{
@ -539,8 +539,8 @@ void EditSelectionContents::paint(cairo_t* cr, double x, double y, double rotati
this->relativeY = y;
}
if (abs(rotation) > __DBL_EPSILON__)
{
if (std::abs(rotation) > __DBL_EPSILON__)
{
this->rotation = rotation;
}
@ -572,7 +572,7 @@ void EditSelectionContents::paint(cairo_t* cr, double x, double y, double rotati
double sx = (double) wTarget / wImg;
double sy = (double) hTarget / hImg;
if (wTarget != wImg || hTarget != hImg || abs(rotation) > __DBL_EPSILON__)
if (wTarget != wImg || hTarget != hImg || std::abs(rotation) > __DBL_EPSILON__)
{
if (!this->rescaleId)
{

@ -15,7 +15,7 @@
#include <Range.h>
#include <Rectangle.h>
#include <math.h>
#include <cmath>
EraseHandler::EraseHandler(UndoRedoHandler* undo, Document* doc, PageRef page, ToolHandler* handler, Redrawable* view)
{

@ -12,7 +12,7 @@
#include "gui/MainWindow.h"
#include <math.h>
#include <cmath>
#define PIXEL_MOTION_THRESHOLD 0.3

@ -11,7 +11,7 @@
#include <config-features.h>
#include <gdk/gdk.h>
#include <math.h>
#include <cmath>
StrokeHandler::StrokeHandler(XournalView* xournal, XojPageView* redrawable, PageRef page)
: InputHandler(xournal, redrawable, page),

@ -45,7 +45,6 @@
#include <gdk/gdk.h>
#include <stdlib.h>
#include <math.h>
XojPageView::XojPageView(XournalView* xournal, PageRef page)
{

@ -20,8 +20,6 @@
#include <gdk/gdk.h>
#include <math.h>
XournalView::XournalView(GtkWidget* parent, Control* control, ScrollHandling* scrollHandling)
: scrollHandling(scrollHandling),
control(control)

@ -160,7 +160,7 @@ bool ColorToolItem::colorEqualsMoreOreLess(int color)
int g2 = (this->color & 0xff00) >> 8;
int b2 = (this->color & 0xff);
if (abs(r1 - r2) < 10 && abs(g1 - g2) < 10 && abs(b1 - b2) < 10)
if (std::abs(r1 - r2) < 10 && std::abs(g1 - g2) < 10 && std::abs(b1 - b2) < 10)
{
return true;
}

@ -2,7 +2,7 @@
#include <pixbuf-utils.h>
#include <math.h>
#include <cmath>
ColorSelectImage::ColorSelectImage(int color, bool circle)
: color(color),

@ -16,7 +16,6 @@
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#include <math.h>
static void gtk_xournal_class_init(GtkXournalClass* klass);
static void gtk_xournal_init(GtkXournal* xournal);

@ -5,7 +5,7 @@
#include <i18n.h>
#include <math.h>
#include <cmath>
Stroke::Stroke()
: AudioElement(ELEMENT_STROKE)

@ -6,7 +6,7 @@
#include <Range.h>
#include <math.h>
#include <cmath>
EraseableStroke::EraseableStroke(Stroke* stroke)
: stroke(stroke)

Loading…
Cancel
Save