Skip to content

Commit c54588a

Browse files
authored
Merge branch 'ColorCop:main' into main
2 parents 34f0b52 + 6be67e4 commit c54588a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

ColorCop.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,15 @@ void CColorCopApp::Serialize(CArchive& ar) {
246246
ar >> dlg.m_Appflags;
247247
ar >> dlg.WinLocX;
248248
ar >> dlg.WinLocY;
249-
for (int j = 0; j < kCustomColorCount; j++) //load custom color values to array
249+
// load custom color values to array
250+
for (int j = 0; j < kCustomColorCount; j++) {
250251
ar >> dlg.CustColorBank[j];
251-
for (int w = 0; w < kHistoryCount; w++) // save color history values
252+
}
253+
// load color history values to array
254+
for (int w = 0; w < kHistoryCount; w++) {
252255
ar >> dlg.ColorHistory[w];
253-
254-
ar >> dlg.m_iSamplingOffset;
256+
}
257+
ar >> dlg.m_iSamplingOffset;
255258
} catch (CArchiveException*) {
256259
AfxMessageBox(IDS_ERROR_LOADING);
257260
}

0 commit comments

Comments
 (0)