Skip to content
Permalink
Browse files

add anchor to help URL only if necessary

  • Loading branch information
alexbruy committed Feb 14, 2017
1 parent 23c09fc commit eaa97f367e630c7a9efc4ded06d94e2f08c7bf98
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/qgshelp.cpp
@@ -87,7 +87,11 @@ QUrl QgsHelp::helpUrl( const QString& key )
continue;
}
helpUrl = QUrl::fromLocalFile( filePath );
helpUrl.setFragment( helpPath.mid( helpPath.lastIndexOf( "#" ) + 1, -1 ) );
int pos = helpPath.lastIndexOf( "#" );
if ( pos != -1 )
{
helpUrl.setFragment( helpPath.mid( helpPath.lastIndexOf( "#" ) + 1, -1 ) );
}
}

helpFound = true;

0 comments on commit eaa97f3

Please sign in to comment.
You can’t perform that action at this time.