From 7e32bfb85e5a698ef2e83dbc8b773764d8664401 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Thu, 16 Jul 2015 17:35:05 -0700 Subject: [PATCH] Fixing mac/linux build --- interface/src/ui/overlays/TextOverlay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/ui/overlays/TextOverlay.cpp b/interface/src/ui/overlays/TextOverlay.cpp index 466e536189..32d94ec05b 100644 --- a/interface/src/ui/overlays/TextOverlay.cpp +++ b/interface/src/ui/overlays/TextOverlay.cpp @@ -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" \ No newline at end of file +#include "TextOverlay.moc"