Edwin Leuven wrote:
i am trying to get a different text color in a selection (not very
succesfully up until now) and have the attached code which only changes
some color settings in rowpainter
now the odd thing is that if i start selecting regular text, the cells
in (an adjacent) tabular are also updated. and selecting text in a
tabular cell updates other regular text. usually this is not visible,
but since the colors are changed this now turns up.
somehow this smells like a bug. am i right?
edwin
PS tips to get the code working are welcome!
You should use Row::sel_beg and Row::sel_end instead of
cursor().selBegin().pos() and cursor().selEnd().pos().
By the way, your code does work because the InsetText in the table cell
is not in a cursor slice. I've warned many times that this is a design
problem of InsetTable.
Abdel.