Skip to content

Commit

Permalink
Merge pull request #298 from reupen/bugfix/buttons-toolbar-relative-p…
Browse files Browse the repository at this point in the history
…aths

Correct loading of images with relative paths in the buttons toolbar
  • Loading branch information
reupen authored Mar 6, 2020
2 parents c79d5c2 + 6ca3f17 commit 358bdb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log

## 1.4.1

### Bug fixes

* A regression in the buttons toolbar, which may have caused the loading of custom images with relative paths to fail, was fixed. [[#298](https://github.com/reupen/columns_ui/pull/298)]

## 1.4.0

### Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion foo_ui_columns/buttons_button_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void ButtonsToolbar::ButtonImage::load(const Button::CustomImage& p_image)
GetSystemMetrics(SM_CYSMICON), LR_LOADFROMFILE);
else {
try {
m_bm = cui::wic::create_hbitmap_from_path(p_image.m_path).release();
m_bm = cui::wic::create_hbitmap_from_path(fullPath).release();
} catch (const std::exception& ex) {
fbh::print_to_console(u8"Buttons toolbar – loading image failed: ", ex.what());
m_bm = nullptr;
Expand Down

0 comments on commit 358bdb8

Please sign in to comment.