summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authordante <dante19031999@gmail.com>2021-02-14 17:50:02 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-14 20:09:56 +0100
commit8957cf1cc041839d7d1e96b4d2617a82777692d4 (patch)
treef439347d483ca487f8ca86a65cc7fbb03b0ea586 /starmath/inc
parent1fa83df607b9721c8f12125942de1c586a624bd0 (diff)
Reorganize starmath color data flow
This will make possible to edit structure nodes with graphic UI. Change-Id: I37500958dbd684d239d615fc1d8df562a0c5b486 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110490 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/token.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/starmath/inc/token.hxx b/starmath/inc/token.hxx
index 5b903cc7bc1c..650884471aa5 100644
--- a/starmath/inc/token.hxx
+++ b/starmath/inc/token.hxx
@@ -267,9 +267,9 @@ struct SmToken
void operator=(const SmColorTokenTableEntry& aTokenTableEntry)
{
- aText = OUString::number(static_cast<sal_uInt32>(aTokenTableEntry.cColor), 16);
+ aText = u"";
eType = aTokenTableEntry.eType;
- cMathChar = u"";
+ cMathChar = OUString::number(static_cast<sal_uInt32>(aTokenTableEntry.cColor), 16);
nGroup = TG::Color;
nLevel = 0;
nRow = 0;
@@ -278,9 +278,9 @@ struct SmToken
void operator=(const SmColorTokenTableEntry* aTokenTableEntry)
{
- aText = OUString::number(static_cast<sal_uInt32>(aTokenTableEntry->cColor), 16);
+ aText = u"";
eType = aTokenTableEntry->eType;
- cMathChar = u"";
+ cMathChar = OUString::number(static_cast<sal_uInt32>(aTokenTableEntry->cColor), 16);
nGroup = TG::Color;
nLevel = 0;
nRow = 0;
@@ -289,9 +289,9 @@ struct SmToken
void operator=(const std::unique_ptr<SmColorTokenTableEntry>& aTokenTableEntry)
{
- aText = OUString::number(static_cast<sal_uInt32>(aTokenTableEntry->cColor), 16);
+ aText = u"";
eType = aTokenTableEntry->eType;
- cMathChar = u"";
+ cMathChar = OUString::number(static_cast<sal_uInt32>(aTokenTableEntry->cColor), 16);
nGroup = TG::Color;
nLevel = 0;
nRow = 0;