]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/regconf.cpp
Up-ported code to make tree item visible when programmatically
[wxWidgets.git] / src / msw / regconf.cpp
index 5d8d70f97a357bad62dab6b2dc9641fcac10af7f..2fa8685006225b6723877d306ed7262b07f78751 100644 (file)
@@ -309,8 +309,12 @@ void wxRegConfig::SetPath(const wxString& strPath)
 
                         totalSlashes++;
                     }
 
                         totalSlashes++;
                     }
-                    //else: nothing to do, we squeeze several subseuquent
-                    //      slashes into one
+                    else // previous char was a slash too
+                    {
+                        // squeeze several subsequent slashes into one: i.e.
+                        // just ignore this one
+                        dst--;
+                    }
                 }
             }
             else // normal character
                 }
             }
             else // normal character