mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 12:35:19 +02:00
Fixing mac/linux build
This commit is contained in:
parent
e6e9f017c0
commit
7e32bfb85e
1 changed files with 2 additions and 2 deletions
|
@ -232,7 +232,7 @@ QScriptValue TextOverlay::getProperty(const QString& property) {
|
|||
QSizeF TextOverlay::textSize(const QString& text) const {
|
||||
int lines = 1;
|
||||
foreach(QChar c, text) {
|
||||
if (c == "\n") {
|
||||
if (c == QChar('\n')) {
|
||||
++lines;
|
||||
}
|
||||
}
|
||||
|
@ -261,4 +261,4 @@ void TextOverlay::setTopMargin(int margin) {
|
|||
_qmlElement->settopMargin(margin);
|
||||
}
|
||||
|
||||
#include "TextOverlay.moc"
|
||||
#include "TextOverlay.moc"
|
||||
|
|
Loading…
Reference in a new issue