mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
fix to Bug: 1110
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6992 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
44e50e1dcd
commit
7085b13fd7
@ -1,3 +1,6 @@
|
||||
2003-05-21 Alfredo Braunstein <abraunst@libero.it>
|
||||
|
||||
* text.C (top_y): fix bug 1110
|
||||
|
||||
2003-05-08 Alfredo Braunstein <abraunst@libero.it>
|
||||
|
||||
|
12
src/text.C
12
src/text.C
@ -87,16 +87,24 @@ void LyXText::updateRowPositions()
|
||||
|
||||
int LyXText::top_y() const
|
||||
{
|
||||
if (isInInset() || anchor_row_ == rowlist_.end() )
|
||||
if (anchor_row_ == rowlist_.end() )
|
||||
return 0;
|
||||
|
||||
return anchor_row_->y() + anchor_row_offset_;
|
||||
}
|
||||
|
||||
|
||||
void LyXText::top_y(int newy)
|
||||
{
|
||||
if (rows().empty() || isInInset())
|
||||
if (rows().empty())
|
||||
return;
|
||||
|
||||
if (isInInset()) {
|
||||
anchor_row_ = rows().begin();
|
||||
anchor_row_offset_ = newy;
|
||||
return;
|
||||
}
|
||||
|
||||
lyxerr[Debug::GUI] << "setting top y = " << newy << endl;
|
||||
|
||||
int y = newy;
|
||||
|
Loading…
Reference in New Issue
Block a user