mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Fix migration of rows and columns percents from registry (#1641)
This commit is contained in:
parent
dee6dc1e6c
commit
49868d8f7c
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user