Skip to content

Conversation

@hokolomopo
Copy link
Contributor

Description

If a literal cell containing a number was wrapped (because the number was large, or because it had a long format), the row height was wrong.

Task: 4878338

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented Nov 25, 2025

Pull request status dashboard

If a literal cell containing a number was wrapped (because the number
was large, or because it had a long format), the row height was wrong.

Task: 4878338
@hokolomopo hokolomopo force-pushed the 17.0-fix-numbre-wrapping-adrm branch from ed90cda to 123dbc2 Compare December 3, 2025 12:35
content = formatValue(parseLiteral(cell.content, locale), localeFormat);
}
} catch {
content = CellErrorType.GenericError;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this fail for other reasons than an invalid format?
and is it possible in real life conditions to have an invalid format?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah only for invalid formats. I don't think it should happens in practice, but we do have a test with invalid format that fails without the try/catch so ... (Update cell with a format is correctly set)

Copy link
Collaborator

@rrahir rrahir Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should discuss the possibility/necessity to reject invalid formats then ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants