diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-14 15:27:51 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-14 15:27:51 +0200 |
| commit | 76d3082e5b89fe54acaaaaadd201ccc92f4f346e (patch) | |
| tree | 32d5212d87bc0b4cab06bcbe923f7eeb019268b0 /src/ui/ui_settings.cpp | |
| parent | 38019a9693375ac6719ffec43bff63774e142387 (diff) | |
tests for administration io
Diffstat (limited to 'src/ui/ui_settings.cpp')
| -rw-r--r-- | src/ui/ui_settings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/ui_settings.cpp b/src/ui/ui_settings.cpp index dfe6b96..ae251d9 100644 --- a/src/ui/ui_settings.cpp +++ b/src/ui/ui_settings.cpp @@ -98,7 +98,7 @@ static void ui_draw_vat_rates() if (ImGui::Button(btn_name, ImVec2(20,20))) { is_adding_item = true; is_editing_item = false; - memset(&new_tax_bracket, 0, sizeof(new_tax_bracket)); + new_tax_bracket = administration_tax_bracket_create_empty(); strops_copy(new_tax_bracket.country_code, c.country_code, 3); } ImGui::PopStyleVar(); @@ -308,9 +308,9 @@ static void ui_draw_cost_centers() // If not adding a new item already, show create button at bottom of list. if (!is_adding_item && ImGui::Button(localize("form.create"))) { + new_cost_center = administration_cost_center_create_empty(); is_adding_item = true; is_editing_item = false; - memset(&new_cost_center, 0, sizeof(new_cost_center)); } } |
