cc_frm_clock.cpp: add space as a possible seperator

Origin commit data
------------------
Branch: ni/coolstream
Commit: ef78791ec2
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-12-03 (Tue, 03 Dec 2013)

Origin message was:
------------------
- cc_frm_clock.cpp: add space as a possible seperator

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2013-12-03 12:38:28 +01:00
parent 82e303dbe8
commit 0446aabe22

View File

@@ -151,11 +151,10 @@ void CComponentsFrmClock::initCCLockItems()
} }
} }
int w_tmp; int minSepWidth = 0;
int minSepWidth = (*getClockFont())->getRenderWidth(":", true); minSepWidth = std::max((*getClockFont())->getRenderWidth(" ", true), minSepWidth);
w_tmp = (*getClockFont())->getRenderWidth(".", true); minSepWidth = std::max((*getClockFont())->getRenderWidth(".", true), minSepWidth);
if (w_tmp > minSepWidth) minSepWidth = std::max((*getClockFont())->getRenderWidth(":", true), minSepWidth);
minSepWidth = w_tmp;
//modify available label items with current segment chars //modify available label items with current segment chars
for (size_t i = 0; i < v_cc_items.size(); i++) for (size_t i = 0; i < v_cc_items.size(); i++)
@@ -183,6 +182,7 @@ void CComponentsFrmClock::initCCLockItems()
case '0' ... '9': case '0' ... '9':
wtmp = (*getClockFont())->getMaxDigitWidth(); wtmp = (*getClockFont())->getMaxDigitWidth();
break; break;
case ' ':
case '.': case '.':
case ':': case ':':
wtmp = minSepWidth; wtmp = minSepWidth;