aiekick / ImGuiFileDialog

Full featured file Dialog for Dear ImGui
MIT License
1.25k stars 202 forks source link

Update ImGuiFileDialog.cpp #153

Closed uusdnfdsfhnttyh closed 11 months ago

uusdnfdsfhnttyh commented 11 months ago

fix when m_CurrentPathDecomposition is empty bug

JKAppStudio commented 11 months ago

+1 @aiekick very annoying issue on windows.

aiekick commented 11 months ago

hello,

thanks for the PR.

btw, in what condition the m_CurrentPathDecomposition is empty ? what is your use case who produce this bug ? normally cant be empty.

Thanks

JKAppStudio commented 11 months ago

Hi, @aiekick!

On Windows.

  1. Go to "Drive" (do not select any).
  2. Press "Edit path".
  3. App crash: "Can't decrement vector iterator before begin".

Looks like windows specific issue.

Thanks for great library, btw.