-
Notifications
You must be signed in to change notification settings - Fork 11
Reformatted code and wip file importing #10
Conversation
# Conflicts: # CMakeLists.txt # external/vtflib # src/cli/action_convert.cpp # src/cli/action_convert.hpp # src/common/enums.cpp # src/gui/viewer.cpp # src/gui/viewer.hpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff! Needs a few changes small though
…port-files # Conflicts: # src/gui/viewer.cpp
# Conflicts: # src/gui/viewer.cpp
Currently crashing when importing a file if no file was opened before. Investigating. |
Found crash point: // Select the correct image format
for (int i = 0; i < util::ArraySize(IMAGE_FORMATS); ++i) {
if (IMAGE_FORMATS[i].format == file->GetFormat()) {
// FIXME: IT CRASHES HERE
formatCombo_->setCurrentIndex(i);
break;
}
} At line 520, the program segfaults. Note that this only happens if the first thing done by the user is import the file. |
* removed useless variable
* fixed segfault when importing file * fixed save button not working (previours commit)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good now, thanks for the help!
In the future, let's try to use rebase for PRs though. Makes it much easier to review in GitHub since it helps keep your changes separate from ones on the main branch. Let me know if you need a walk-through on rebasing!
Definitely, next time I'll use rebase. Thank you very much <3 |
Uh oh!
There was an error while loading. Please reload this page.