Skip to content

Commit

Permalink
fix: table cleanup [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Dec 31, 2021
1 parent 549106c commit e743489
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion DearPyGui/src/ui/AppItems/mvAppItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ namespace Marvel {
for (auto& childset : childslots)
{
childset.clear();
childset.shrink_to_fit();
}

if (type == mvAppItemType::mvTable)
Expand Down
2 changes: 0 additions & 2 deletions DearPyGui/src/ui/AppItems/mvItemRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -810,14 +810,12 @@ namespace Marvel {
if (slot > -1 && slot < 4)
{
item->childslots[slot].clear();
item->childslots[slot].shrink_to_fit();
}
else
{
for(size_t i = 0; i < 4; i++)
{
item->childslots[i].clear();
item->childslots[i].shrink_to_fit();
}
}

Expand Down
7 changes: 0 additions & 7 deletions DearPyGui/src/ui/AppItems/tables/mvTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,6 @@ namespace Marvel {
_rowSelectionColors.clear();
_rowSelectionColorsSet.clear();

_columnColors.shrink_to_fit();
_columnColorsSet.shrink_to_fit();
_rowColors.shrink_to_fit();
_rowColorsSet.shrink_to_fit();
_rowSelectionColors.shrink_to_fit();
_rowSelectionColorsSet.shrink_to_fit();

for (int i = 0; i < _columns; i++)
{
_columnColors.push_back(ImGui::ColorConvertFloat4ToU32(ImVec4(0.0f, 0.0f, 0.0f, 0.0f)));
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import shutil
import subprocess

wip_version = "1.2b1"
wip_version = "1.2"

def version_number():
"""This function reads the version number which is populated by github actions"""
Expand Down

0 comments on commit e743489

Please sign in to comment.