From 120d8fc75c164555058d63ef7dca8bfbd8316a5a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 27 Sep 2016 15:45:20 +0200 Subject: Use FixedVariable::bAbsPath to check for special path vars Change-Id: I526c45ecf3c7e21b87c16eef5047707f74da7668 --- framework/source/services/substitutepathvars.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'framework/source/services/substitutepathvars.cxx') diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index cd6bead77284..4d0299886c7c 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -1091,9 +1091,7 @@ throw ( RuntimeException ) if ( nPos >= 0 ) { bool bMatch = true; - if ( i.eVariable == PREDEFVAR_USERNAME || - i.eVariable == PREDEFVAR_LANGID || - i.eVariable == PREDEFVAR_VLANG ) + if ( !aFixedVarTable[i.eVariable].bAbsPath ) { // Special path variables as they can occur in the middle of a path. Only match if they // describe a whole directory and not only a substring of a directory! -- cgit