mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Fix migration of rows and columns percents from registry (#1641)
This commit is contained in:
@@ -714,14 +714,14 @@ namespace JSONHelpers
|
||||
int j = 5;
|
||||
GridLayoutInfo zoneSetInfo(GridLayoutInfo::Minimal{ .rows = data[j++], .columns = data[j++] });
|
||||
|
||||
for (int row = 0; row < zoneSetInfo.rows(); row++)
|
||||
for (int row = 0; row < zoneSetInfo.rows(); row++, j+=2)
|
||||
{
|
||||
zoneSetInfo.rowsPercents()[row] = data[j++] * 256 + data[j++];
|
||||
zoneSetInfo.rowsPercents()[row] = data[j] * 256 + data[j+1];
|
||||
}
|
||||
|
||||
for (int col = 0; col < zoneSetInfo.columns(); col++)
|
||||
for (int col = 0; col < zoneSetInfo.columns(); col++, j+=2)
|
||||
{
|
||||
zoneSetInfo.columnsPercents()[col] = data[j++] * 256 + data[j++];
|
||||
zoneSetInfo.columnsPercents()[col] = data[j] * 256 + data[j+1];
|
||||
}
|
||||
|
||||
for (int row = 0; row < zoneSetInfo.rows(); row++)
|
||||
|
||||
Reference in New Issue
Block a user