X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fdialog%2Ffind.cpp;h=0a0538c30ab4efcf512b455bcd9af609dd2cc79c;hb=11a7559367dd1824198fe3b75e6d6ceb208ea1b7;hp=10f377ca86f88ea8e7896d5fcacee3efa6c6118a;hpb=14d72ef4f1da4bf8731db5656d83b73c9db7d039;p=inkscape.git diff --git a/src/ui/dialog/find.cpp b/src/ui/dialog/find.cpp index 10f377ca8..0a0538c30 100644 --- a/src/ui/dialog/find.cpp +++ b/src/ui/dialog/find.cpp @@ -35,6 +35,7 @@ #include "sp-flowtext.h" #include "text-editing.h" #include "sp-tspan.h" +#include "sp-tref.h" #include "selection-chemistry.h" #include "sp-defs.h" #include "sp-rect.h" @@ -55,8 +56,8 @@ namespace Inkscape { namespace UI { namespace Dialog { -Find::Find() - : Dialog ("dialogs.find", SP_VERB_DIALOG_FIND), +Find::Find(Behavior::BehaviorFactory behavior_factory) + : Dialog (behavior_factory, "dialogs.find", SP_VERB_DIALOG_FIND), _entry_text(_("_Text: "), _("Find objects by their text content (exact or partial match)")), _entry_id(_("_ID: "), _("Find objects by the value of the id attribute (exact or partial match)")), _entry_style(_("_Style: "), _("Find objects by the value of the style attribute (exact or partial match)")), @@ -292,7 +293,7 @@ Find::item_type_match (SPItem *item) } else if (SP_IS_PATH(item) || SP_IS_LINE(item) || SP_IS_POLYLINE(item)) { return (_check_paths.get_active()); - } else if (SP_IS_TEXT(item) || SP_IS_TSPAN(item) || SP_IS_STRING(item)) { + } else if (SP_IS_TEXT(item) || SP_IS_TSPAN(item) || SP_IS_TREF(item) || SP_IS_STRING(item)) { return (_check_texts.get_active()); } else if (SP_IS_GROUP(item) && !desktop->isLayer(item) ) { // never select layers!