]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed a logical error (! isempty) instead of isempty
authorKarsten Ballüder <ballueder@usa.net>
Sat, 15 Aug 1998 17:05:48 +0000 (17:05 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Sat, 15 Aug 1998 17:05:48 +0000 (17:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/config.cpp

index b7c4a11854e14cb6d1c52de4422b6869f7f91a9f..b2d66b5ffd81f9aaeaf89a790441195b6d7c14f7 100644 (file)
@@ -114,7 +114,7 @@ wxConfigBase::PathChanger::PathChanger(const wxConfigBase *pContainer,
   wxString strPath = strEntry.Before(wxCONFIG_PATH_SEPARATOR);
 
   // special case of "/keyname" when there is nothing before "/"
-  if ( strPath.IsEmpty() && strEntry[0] == wxCONFIG_PATH_SEPARATOR )
+  if ( (!strPath.IsEmpty()) && strEntry[0] == wxCONFIG_PATH_SEPARATOR )
     strPath = wxCONFIG_PATH_SEPARATOR;
 
   if ( !strPath.IsEmpty() ) {