You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (auto col = 1; col <= ws.highest_column().index; ++col)
{
xlnt::cell sourceCell = ws.cell(col, copyRow);
xlnt::cell targetCell = ws.cell(col, curRow);
xlnt::style sourceStyle = sourceCell.style();
// Copy the source cell style
targetCell.border(sourceCell.border());
targetCell.font(sourceCell.font());
targetCell.alignment(sourceStyle.alignment());
// Clear the target cell style
targetCell.clear_style();
// Attempt to set the target cell style
targetCell.style(sourceStyle); // This line throws the xlnt::individual_attribute exception
}
Error Message:
xlnt::individual_attribute
Expected Behavior:
I expect to be able to copy the complete style of the source cell to the target cell using targetCell.style(sourceStyle) without encountering any exceptions.
Actual Behavior:
The call to targetCell.style(sourceStyle) throws the xlnt::individual_attribute exception, causing the style copying to fail.
The text was updated successfully, but these errors were encountered:
for (auto col = 1; col <= ws.highest_column().index; ++col)
{
xlnt::cell sourceCell = ws.cell(col, copyRow);
xlnt::cell targetCell = ws.cell(col, curRow);
xlnt::style sourceStyle = sourceCell.style();
}
Error Message:
xlnt::individual_attribute
Expected Behavior:
I expect to be able to copy the complete style of the source cell to the target cell using targetCell.style(sourceStyle) without encountering any exceptions.
Actual Behavior:
The call to targetCell.style(sourceStyle) throws the xlnt::individual_attribute exception, causing the style copying to fail.
The text was updated successfully, but these errors were encountered: