recent fix for compressed files broke help viewer
This commit is contained in:
parent
d7c1ea4798
commit
a9d72b6a55
@ -979,8 +979,14 @@ void RclMain::startNativeViewer(int docnum)
|
|||||||
static string fileurltolocalpath(string url)
|
static string fileurltolocalpath(string url)
|
||||||
{
|
{
|
||||||
if (url.find("file://") == 0)
|
if (url.find("file://") == 0)
|
||||||
return url.substr(7, string::npos);
|
url = url.substr(7, string::npos);
|
||||||
return string();
|
else
|
||||||
|
return string();
|
||||||
|
string::size_type pos;
|
||||||
|
if ((pos = url.find_last_of("#")) != string::npos) {
|
||||||
|
url.erase(pos);
|
||||||
|
}
|
||||||
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RclMain::startNativeViewer(Rcl::Doc doc)
|
void RclMain::startNativeViewer(Rcl::Doc doc)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user