A pair of bugfixes done while working on the other branch, ie:

- really check if the user selected an action from the document popup
- make the HighlightAreaRect constructor an effective copy-ctor

svn path=/trunk/playground/graphics/okular/; revision=567628
This commit is contained in:
Pino Toscano 2006-07-29 16:12:57 +00:00
parent 2561c5f879
commit ab0d3dca78
2 changed files with 4 additions and 1 deletions

View file

@ -120,7 +120,7 @@ HighlightAreaRect::HighlightAreaRect(RegularAreaRect *area)
RegularAreaRect::Iterator i;
for (i=area->begin();i!=area->end();++i)
{
append(*i);
append(new NormalizedRect(*(*i)));
}
s_id=-1;
color=QColor();

View file

@ -1083,8 +1083,11 @@ void Part::slotShowMenu(const KPDFPage *page, const QPoint &point)
if (page && reallyShow)
{
QAction *res = popup->exec(point);
if (res)
{
if (res == toggleBookmark) m_document->toggleBookmark( page->number() );
else if (res == fitPageWidth) m_pageView->fitPageWidth( page->number() );
}
}
delete popup;
}