mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 13:11:41 +00:00
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:
parent
2561c5f879
commit
ab0d3dca78
|
@ -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();
|
||||
|
|
3
part.cpp
3
part.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue