Browse Source

[bug fix]: dirname building single char string wrong.

Former-commit-id: dc4c3379b4b1cf6b86ca6f9a9fcde35bd83905e1
Alec Jacobson 6 năm trước cách đây
mục cha
commit
855f60f9f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      include/igl/dirname.cpp

+ 1 - 1
include/igl/dirname.cpp

@@ -33,7 +33,7 @@ IGL_INLINE std::string igl::dirname(const std::string & path)
   }else if(1 == (last_slash.base() - path.begin()))
   {
     // Slash is first char
-    return std::string(&del);
+    return std::string(1,del);
   }else if(path.end() == last_slash.base() )
   {
     // Slash is last char