X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Frubberband.cpp;h=398f01d3e38e971acf40339432b8796c9326268f;hb=0dc33d4ce43e0bb49c63aa53b826ec4a1ff68e28;hp=7c43da9ea28dfa1114576b5679264a4d5acbc533;hpb=6b76ef6bb3e9b4e1cc83e01cd81a55bbd0450989;p=inkscape.git diff --git a/src/rubberband.cpp b/src/rubberband.cpp index 7c43da9ea..398f01d3e 100644 --- a/src/rubberband.cpp +++ b/src/rubberband.cpp @@ -1,5 +1,3 @@ -#define __RUBBERBAND_C__ - /** * \file src/rubberband.cpp * \brief Rubberbanding selector @@ -16,6 +14,8 @@ #include "desktop.h" #include "desktop-handles.h" #include "rubberband.h" +#include "display/sp-canvas.h" +#include "display/sp-canvas-item.h" #include "display/canvas-bpath.h" #include "display/curve.h" @@ -124,10 +124,10 @@ void Inkscape::Rubberband::setMode(int mode) _mode = mode; } -boost::optional Inkscape::Rubberband::getRectangle() const +Geom::OptRect Inkscape::Rubberband::getRectangle() const { if (!_started) { - return boost::optional(); + return Geom::OptRect(); } return Geom::Rect(_start, _end); @@ -156,4 +156,4 @@ bool Inkscape::Rubberband::is_started() fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :