We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23c09fc commit eaa97f3Copy full SHA for eaa97f3
src/gui/qgshelp.cpp
@@ -87,7 +87,11 @@ QUrl QgsHelp::helpUrl( const QString& key )
87
continue;
88
}
89
helpUrl = QUrl::fromLocalFile( filePath );
90
- helpUrl.setFragment( helpPath.mid( helpPath.lastIndexOf( "#" ) + 1, -1 ) );
+ int pos = helpPath.lastIndexOf( "#" );
91
+ if ( pos != -1 )
92
+ {
93
+ helpUrl.setFragment( helpPath.mid( helpPath.lastIndexOf( "#" ) + 1, -1 ) );
94
+ }
95
96
97
helpFound = true;
0 commit comments