Am 05.05.2015 um 18:23 schrieb Jean-Marc Lasgouttes <lasgout...@lyx.org>:
> Le 05/05/2015 17:49, Stephan Witt a écrit : >>>> For explicite started spell checker a possible solution is attached. The >>>> "continuously spell-check" is not affected since the speller is executed >>>> when drawing is done in the RowPainter. Here one has to ask the parent >>>> insets. I don't know how to get the parent inset of a given inset. >>> >>> I don't think there is a way to do this, except to go through the entire >>> Buffer looking for that inset. >> >> Thanks for the info. I was not sure if my code analysis was right. To add a >> helper method to the Buffer class and construct a complete Cursor to get the >> inset stack for an given inset would be a possibility. I'm not sure if there >> is another use case for this. And I'm afraid this would be to expensive at >> drawing time. > > Can't you add this information to PainterInfo? A bool no_spellcheck ? This is a very good idea and you can find a simple solution attached. This works for me and I'll commit it if there is no veto. Stephan
ticket-9514-2.patch
Description: Binary data