X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=sym-text.c;h=8acfe4b0a1565683b658173c6a49da8b413c61ec;hb=refs%2Fheads%2Flabelling;hp=9f61f7d376443a1d0e3fee0f910e13f40520ca21;hpb=3ee708f92e1d014b42a4eecb9cef0a96120152d1;p=leo.git diff --git a/sym-text.c b/sym-text.c index 9f61f7d..8acfe4b 100644 --- a/sym-text.c +++ b/sym-text.c @@ -234,6 +234,13 @@ static struct symbol * sym_text_copy(struct symbol *sym) return (struct symbol *) new; } +static bool sym_text_look_same(struct symbol *s1, struct symbol *s2) +{ + struct sym_text *st1 = (struct sym_text *) s1; + struct sym_text *st2 = (struct sym_text *) s2; + return (st1->text == st2->text && st1->text_color == st2->text_color); +} + static void sym_text_draw(struct symbol *sym, struct svg *svg) { struct sym_text *t = (struct sym_text *) sym; @@ -545,6 +552,7 @@ struct symbolizer symbolizer_text = { .gen = sym_text_gen, .init = sym_text_init, .copy = sym_text_copy, + .look_same = sym_text_look_same, }; struct sym_text *sym_text_new(struct osm_object *o)