Skip to content

Commit

Permalink
Fix issues in dbind_destroy() and layout_panel_replace()
Browse files Browse the repository at this point in the history
  • Loading branch information
frang75 committed Sep 22, 2024
1 parent b65fc31 commit f8e16ad
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
* GTK flatbutton padding. [Commit](https://github.com/frang75/nappgui_src/commit/5c41f9697ea7e6664b8b9db6cf16c32229ea8c36).
* GTK render listbox checks in Xubuntu. [Commit](https://github.com/frang75/nappgui_src/commit/3c6247159f311195b2871b1fa10492c986b4f42d).
* macOS HighSierra and lowers focus ring drawing issue. [Commit](https://github.com/frang75/nappgui_src/commit/a163cb2555101b831414b6deb781a1d1c49ccd42).
* Issue in `dbind_destroy()`. [Commit]().
* Issue in `layout_panel_replace()`. [Commit]().

### Improved

Expand All @@ -40,7 +42,7 @@
* MinGW desktop apps don't require a local `Application.manifest`. They reference the same file in `/prj/templates`. [Commit](https://github.com/frang75/nappgui_src/commit/ff6a60fab7333bb721c55e5000268107758813f4).
* New function `nap_link_inet(targetName)`. [Commit](https://github.com/frang75/nappgui_src/commit/241be10f0258ff2ecaf2087a3a033876aa4b58cd).
* New function `nap_link_opengl(targetName)`. [Commit](https://github.com/frang75/nappgui_src/commit/241be10f0258ff2ecaf2087a3a033876aa4b58cd).
* New CMake option `-DNAPPGUI_NO_CRTDBG=YES` to disable the CRT debugger in Windows. [Issue](https://github.com/frang75/nappgui_src/issues/152). [Commit]().
* New CMake option `-DNAPPGUI_NO_CRTDBG=YES` to disable the CRT debugger in Windows. [Issue](https://github.com/frang75/nappgui_src/issues/152). [Commit](https://github.com/frang75/nappgui_src/commit/b65fc3194b22b77bab00ba079e25de96a4d3accc).

## v1.4.2 - Jun 30, 2024 (r5177)

Expand Down
2 changes: 1 addition & 1 deletion prj/build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5452
5456
3 changes: 2 additions & 1 deletion src/core/dbind.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,8 @@ static void i_remove_object(byte_t *data, const StBind *stbind, const uint16_t s
break;

case ekDTYPE_OBJECT_PTR:
i_destroy_object(dcast(data + member->offset, byte_t), member->attr.object.stbind, member->size);
cassert(member->size == sizeofptr);
i_destroy_object(dcast(data + member->offset, byte_t), member->attr.object.stbind, member->attr.object.stbind->size);
break;

case ekDTYPE_OBJECT_OPAQUE:
Expand Down
7 changes: 7 additions & 0 deletions src/gui/layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,13 @@ void layout_panel_replace(Layout *layout, Panel *panel, const uint32_t col, cons
{
i_set_component(layout, GuiComponentPtr(panel), col, row, ekJUSTIFY, ekJUSTIFY);
cassert(cell->tabstop == TRUE);

if (layout->panel != NULL)
{
Window *parent_window = _panel_get_window(layout->panel);
_component_set_parent_window(GuiComponentPtr(panel), parent_window);
layout_update(layout);
}
}
else
{
Expand Down

0 comments on commit f8e16ad

Please sign in to comment.