Fixed bug on toggling selection inside InsetText. (fix #???)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3862 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-03-28 16:09:58 +00:00
parent 0afa5607b7
commit 0cdd30b8f8
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,8 @@
2002-03-28 Juergen Vigna <jug@sad.it>
* screen.C (toggleToggle): fix for insettexts y_offset on drawing.
* tabular.C (OldFormatRead): fix ert compatibility read inside cells.
2002-03-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>

View File

@ -523,10 +523,10 @@ void LyXScreen::toggleToggle(LyXText * text, BufferView * bv,
+ text->toggle_end_cursor.row()->height();
int const bottom = min(max(bottom_tmp, text->first_y),
static_cast<int>(text->first_y + owner.height()));
static_cast<int>(text->first_y + owner.height()))-y_offset;
int const top = min(max(top_tmp, text->first_y),
static_cast<int>(text->first_y + owner.height()));
static_cast<int>(text->first_y + owner.height()))-y_offset;
drawFromTo(text, bv, top - text->first_y,
bottom - text->first_y, y_offset,
x_offset);