Skip to content

Commit

Permalink
Some unwanted bug fixes
Browse files Browse the repository at this point in the history
Fixes an error on the function that adds new columns on Layers Editor when the contents are not erased.
It also fixes a forgotten bug which when a user load a file, the number of layers counter was never updated.
  • Loading branch information
Arucard1983 authored Feb 27, 2023
1 parent 180fc44 commit 5697775
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ERYAProfilingERYAProfilingMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,7 @@ void ERYAProfilingERYAProfilingMain::GenerateLayer(int Number)
{
int CurrentTableSize = gridLayerEditor->GetNumberRows();
int NewTableSize = Number;
spinNumberLayers->SetValue(Number);
if (CurrentTableSize != NewTableSize)
{
if (CurrentTableSize < NewTableSize)
Expand All @@ -1987,7 +1988,7 @@ void ERYAProfilingERYAProfilingMain::GenerateLayer(int Number)
void ERYAProfilingERYAProfilingMain::GenerateNewLayer(int Number)
{
int CurrentTableSize = gridLayerEditor->GetNumberCols();
int NewTableSize = Number;
int NewTableSize = Number + 1;
if (CurrentTableSize != NewTableSize)
{
if (CurrentTableSize < NewTableSize)
Expand Down

0 comments on commit 5697775

Please sign in to comment.