mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
getSelections can be 0
This depends on visible selections and not on content of file. So if we have search results on screen this will be more than 0, but if we don't we won't get any link shortcuts
This commit is contained in:
committed by
Qingping Hou
parent
08d26596b8
commit
484d85ab0f
4
cre.cpp
4
cre.cpp
@@ -418,10 +418,6 @@ static int getPageLinks(lua_State *L) {
|
||||
ldomXRangeList links;
|
||||
ldomXRangeList & sel = doc->text_view->getDocument()->getSelections();
|
||||
|
||||
if ( sel.length() == 0 ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
doc->text_view->getCurrentPageLinks( links );
|
||||
int linkCount = links.length();
|
||||
if ( linkCount ) {
|
||||
|
||||
Reference in New Issue
Block a user