Fix a compil warning
This commit is contained in:
parent
7551613826
commit
d93b694327
|
@ -428,10 +428,12 @@ void GRID_TRICKS::paste_text( const wxString& cb_text )
|
||||||
{
|
{
|
||||||
start_row = cur_row;
|
start_row = cur_row;
|
||||||
end_row = cur_row + rows.CountTokens();
|
end_row = cur_row + rows.CountTokens();
|
||||||
|
|
||||||
if( end_row > tbl->GetNumberRows() )
|
if( end_row > tbl->GetNumberRows() )
|
||||||
end_row = tbl->GetNumberRows();
|
end_row = tbl->GetNumberRows();
|
||||||
|
|
||||||
start_col = cur_col;
|
start_col = cur_col;
|
||||||
// end_col calculates later
|
end_col = start_col; // end_col actual value calculates later
|
||||||
}
|
}
|
||||||
|
|
||||||
for( int row = start_row; row < end_row; ++row )
|
for( int row = start_row; row < end_row; ++row )
|
||||||
|
@ -449,6 +451,7 @@ void GRID_TRICKS::paste_text( const wxString& cb_text )
|
||||||
if( !is_selection )
|
if( !is_selection )
|
||||||
{
|
{
|
||||||
end_col = cur_col + cols.CountTokens();
|
end_col = cur_col + cols.CountTokens();
|
||||||
|
|
||||||
if( end_col > tbl->GetNumberCols() )
|
if( end_col > tbl->GetNumberCols() )
|
||||||
end_col = tbl->GetNumberCols();
|
end_col = tbl->GetNumberCols();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue