Use wxGetInstallPrefix() instead of wxINSTALL_PREFIX (makes relocatable packages possible)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-09-26 22:17:05 +00:00
parent c8e8ae85c8
commit 134677bde9
3 changed files with 20 additions and 1 deletions

View File

@@ -2034,7 +2034,7 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
- afmFile = fopen() may fail and in that case the next if branch
MUST be executed - and it would not if there was "else" */
{
afmName = wxINSTALL_PREFIX;
afmName = wxGetInstallPrefix();
afmName << wxFILE_SEP_PATH
<< wxT("share") << wxFILE_SEP_PATH
<< wxT("wx") << wxFILE_SEP_PATH