Skip to content

Commit 0457078

Browse files
committed
Bugfix: wrong colspan calculation for align of "Empty" cell to byte end
1 parent e5cd294 commit 0457078

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

EDSEditorGUI/DevicePDOView2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ public void UpdatePDOinfo(bool updatechoices = true)
531531
grid1[row + 2, bitoff + INFO_COLS_COUNT] = new SourceGrid.Cells.Cell("Empty", comboStandard);
532532
// Align "Empty" cell to byte end
533533
int colspan = (64 - bitoff) % 8;
534-
if ((colspan == 0) && ((64 - bitoff) > 8))
534+
if ((colspan == 0) && ((64 - bitoff) >= 8))
535535
colspan = 8;
536536
grid1[row + 2, bitoff + INFO_COLS_COUNT].ColumnSpan = colspan;
537537
grid1[row + 2, bitoff + INFO_COLS_COUNT].View = viewEmpty;

0 commit comments

Comments
 (0)