summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 418e9e2)
raw | patch | inline | side by side (parent: 418e9e2)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 26 Feb 2007 20:43:43 +0000 (20:43 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 26 Feb 2007 20:43:43 +0000 (20:43 +0000) |
src/flood-context.cpp | patch | blob | history |
diff --git a/src/flood-context.cpp b/src/flood-context.cpp
index f9b3c5ffc84b71c0fd51743300ce0dbc6a2f1c99..78f8b97dd10d0a134d48f6065b9daf8e90de6e6b 100644 (file)
--- a/src/flood-context.cpp
+++ b/src/flood-context.cpp
#include "snap.h"
#include "desktop.h"
#include "desktop-style.h"
+#include "message-stack.h"
#include "message-context.h"
#include "pixmaps/cursor-rect.xpm"
#include "flood-context.h"
@@ -358,7 +359,10 @@ static void sp_flood_do_flood_fill(SPEventContext *event_context, GdkEvent *even
SPItem *document_root = SP_ITEM(SP_DOCUMENT_ROOT(document));
NR::Rect bbox = document_root->invokeBbox(NR::identity());
- if (bbox.isEmpty()) { return; }
+ if (bbox.isEmpty()) {
+ desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("<b>Area is not bounded</b>, cannot fill."));
+ return;
+ }
int width = (int)ceil(bbox.extent(NR::X));
int height = (int)ceil(bbox.extent(NR::Y));
@@ -488,6 +492,7 @@ static void sp_flood_do_flood_fill(SPEventContext *event_context, GdkEvent *even
if (aborted) {
g_free(trace_px);
+ desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("<b>Area is not bounded</b>, cannot fill."));
return;
}