diff options
Diffstat (limited to 'desktop/selection.c')
-rw-r--r-- | desktop/selection.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index 168d28673..9dd58ce4f 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -49,8 +49,6 @@ * or wholly without the textarea/input box. */ -#define IS_TEXT(box) ((box)->text && !(box)->object) - #define IS_INPUT(box) ((box) && (box)->gadget && \ ((box)->gadget->type == GADGET_TEXTAREA || (box)->gadget->type == GADGET_TEXTBOX)) @@ -223,7 +221,7 @@ unsigned selection_label_subtree(struct box *box, unsigned idx) box->byte_offset = idx; - if (box->text && !box->object) + if (box->text) idx += box->length + box->space; while (child) { @@ -847,7 +845,7 @@ struct box *get_box(struct box *b, unsigned offset, int *pidx) { struct box *child = b->children; - if (b->text && !b->object) { + if (b->text) { if (offset >= b->byte_offset && offset < b->byte_offset + b->length + b->space) { |