mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
fix bug 461
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4513 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
67d951a610
commit
46ae7ea256
@ -1,7 +1,7 @@
|
||||
|
||||
2002-06-26 André Pönitz <poenitz@gmx.de>
|
||||
|
||||
* development/Win32/lyxwin32.c: Win32 specific patch from Claus Hentschel
|
||||
* development/Win32/lyxwin32.c: Win32 specific patch from Claus
|
||||
Hentschel
|
||||
|
||||
2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-06-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* text.C (changeRegionCase): do not change case of all the
|
||||
document when region ends at paragraph end (bug #461)
|
||||
|
||||
2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* paragraph.C (startTeXParParams):
|
||||
|
@ -2604,6 +2604,11 @@ void LyXText::changeRegionCase(BufferView * bview,
|
||||
Paragraph * par = from.par();
|
||||
|
||||
while (par && (pos != to.pos() || par != to.par())) {
|
||||
if (pos == par->size()) {
|
||||
par = par->next();
|
||||
pos = 0;
|
||||
continue;
|
||||
}
|
||||
unsigned char c = par->getChar(pos);
|
||||
if (!IsInsetChar(c) && !IsHfillChar(c)) {
|
||||
switch (action) {
|
||||
@ -2623,10 +2628,6 @@ void LyXText::changeRegionCase(BufferView * bview,
|
||||
checkParagraph(bview, par, pos);
|
||||
|
||||
++pos;
|
||||
if (pos == par->size()) {
|
||||
par = par->next();
|
||||
pos = 0;
|
||||
}
|
||||
}
|
||||
if (to.row() != from.row()) {
|
||||
refresh_y = from.y() - from.row()->baseline();
|
||||
|
Loading…
Reference in New Issue
Block a user