mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
small simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21169 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
372e605c2f
commit
604bf56374
@ -852,9 +852,8 @@ void Text::changeCase(Cursor & cur, TextCase action)
|
||||
|
||||
for (pit_type pit = begPit; pit <= endPit; ++pit) {
|
||||
Paragraph & par = pars_[pit];
|
||||
pos_type parSize = par.size();
|
||||
pos_type pos = (pit == begPit ? begPos : 0);
|
||||
right = (pit == endPit ? endPos : parSize);
|
||||
pos_type const pos = (pit == begPit ? begPos : 0);
|
||||
right = (pit == endPit ? endPos : par.size());
|
||||
par.changeCase(cur.buffer().params(), pos, right, action);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user