diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-07-11 17:24:32 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-08-21 15:16:54 +0000 |
| commit | ce82fc5441f100892bd1928a27df789f5469db56 (patch) | |
| tree | 2d47639ebb9e1a307585ffc7df57e8e830cf9603 /src/trace | |
| parent | add autotrace options (diff) | |
| download | inkscape-ce82fc5441f100892bd1928a27df789f5469db56.tar.gz inkscape-ce82fc5441f100892bd1928a27df789f5469db56.zip | |
Fix build
Diffstat (limited to 'src/trace')
| -rw-r--r-- | src/trace/autotrace/inkscape-autotrace.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trace/autotrace/inkscape-autotrace.cpp b/src/trace/autotrace/inkscape-autotrace.cpp index dcd9ce96f..9ce4132bb 100644 --- a/src/trace/autotrace/inkscape-autotrace.cpp +++ b/src/trace/autotrace/inkscape-autotrace.cpp @@ -99,6 +99,8 @@ Glib::RefPtr<Gdk::Pixbuf> AutotraceTracingEngine::preview(Glib::RefPtr<Gdk::Pixb } +int test_cancel (void* keepGoing){return !(* ((int*)keepGoing));} + /** * This is the working method of this interface, and all * implementing classes. Take a GdkPixbuf, trace it, and @@ -116,7 +118,7 @@ std::vector<TracingEngineResult> AutotraceTracingEngine::trace(Glib::RefPtr<Gdk: at_bitmap_new(gdk_pixbuf_get_width(pb1), gdk_pixbuf_get_height(pb1), 3); bitmap->bitmap = pb; - at_splines_type *splines = at_splines_new_full(bitmap, opts, NULL, NULL, NULL, NULL, NULL, NULL); + at_splines_type *splines = at_splines_new_full(bitmap, opts, NULL, NULL, NULL, NULL, test_cancel, &keepGoing); // at_output_write_func wfunc = at_output_get_handler_by_suffix("svg"); at_spline_writer *wfunc = at_output_get_handler_by_suffix("svg"); |
