Relies on toInt32 features:
- Skip control characters at the beginning of the token
- Stop conversion at first non-digit character Also avoid conversion of negative values to 255, due to downcast to unsigned 16-bits value
Change-Id: I2029e35dd779220bd3fb74d5173b1482b571f76c Reviewed-on: https://gerrit.libreoffice.org/13730
78f6e6f Simplify CSS1Expression::GetColor for CSS1_RGB case
sw/source/filter/html/parcss1.cxx | 36 +++++++++---------------------------
1 file changed, 9 insertions(+), 27 deletions(-)
Upstream: cgit.freedesktop.org