Fixing mac/linux build

This commit is contained in:
Brad Davis 2015-07-16 17:35:05 -07:00
parent e6e9f017c0
commit 7e32bfb85e

View file

@ -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"