Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong variable appended to path string #8

Open
SergioCatal opened this issue Aug 9, 2023 · 0 comments
Open

Wrong variable appended to path string #8

SergioCatal opened this issue Aug 9, 2023 · 0 comments

Comments

@SergioCatal
Copy link

https://github.com/Limeoats/L2DFileDialog/blob/b8bc0495739db5025aa075a545b78555c2cc2199/L2DFileDialog/src/L2DFileDialog.h#L334C1-L334C127

Shouldn't this line append the current folder instead of the current file?

Suggested edit:
auto path = file_dialog_current_path + (file_dialog_current_path.back() == '\\' ? "" : "\\") + file_dialog_current_folder;

After all, that variable is the one that is checked in the if clause on line 330.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant