Opened 20 years ago

Closed 20 years ago

#1876 closed defect (fixed)

Spellchecker never checks the first word

Reported by: bouf10pub@… Owned by: levon
Priority: high Milestone:
Component: spell Version: 1.4.0cvs
Severity: normal Keywords:
Cc:

Description

The first word of a paragraph is never checked if the cursor is placed at the
beginning of that paragraph (just before the first letter at position 0).

As a side effect, when the cursor is placed at the beginning of the document,
the first word is never checked.

Attachments (1)

spell-pos0.diff (727 bytes ) - added by bouf10pub@… 20 years ago.
A patch to solve the problem

Download all attachments as: .zip

Change History (6)

by bouf10pub@…, 20 years ago

Attachment: spell-pos0.diff added

A patch to solve the problem

comment:1 by bouf10pub@…, 20 years ago

attachments.description: A patch to correct the problemA patch to solve the problem

comment:2 by leeming, 20 years ago

Hi, Félix-Antoine.

This patch is against LyX 1.4.x. I take it, therefore, that the bug is not
present in LyX 1.3.5?

I'm afraid that I don't understand your patch. Or rather, I do understand and
see what it does, but I don't really understand the original code. I'll think
some more about it and I'll probably take this to the lyx-devel list.

Many thanks for reporting the problem.
Angus

comment:3 by bouf10pub@…, 20 years ago

This problem is only affecting the CVS code (1.4.0). The problem is not present
in 1.3.5.

comment:4 by leeming, 20 years ago

Subject: lyx-devel src/frontends/controllers/: ChangeLog ...

CVSROOT: /usr/local/lyx/cvsroot
Module name: lyx-devel
Repository: lyx-devel/src/frontends/controllers/
Changes by: leeming@… 05/05/04 00:24:43

Modified files:

lyx-devel/src/frontends/controllers/: ChangeLog

ControlSpellchecker.C

Log message:

Fix #1876. Thanks Alfredo. Thanks Felix-Antoine.

Bugs:
#1876

Patches:
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/frontends/controllers/ChangeLog?r1=1.477&r2=1.478
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/frontends/controllers/ControlSpellchecker.C?r1=1.81&r2=1.82

Complete Diff:
/usr/bin/cvs -f diff -kk -u -r 1.477 -r 1.478 src/frontends/controllers/ChangeLog
/usr/bin/cvs -f diff -kk -u -r 1.81 -r 1.82 src/frontends/controllers/ControlSpellchecker.C

comment:5 by leeming, 20 years ago

Resolution: fixed
Status: newclosed

Reported as fixed by Félix-Antoine.

Note: See TracTickets for help on using tickets.