[Scummvm-cvs-logs] scummvm master -> 8e4f892ef9e6ad6c2809449373adb8cbad88aa9b

sev- sev at scummvm.org
Mon Jun 6 08:05:22 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8e4f892ef9 GUI: Fixed negative index check


Commit: 8e4f892ef9e6ad6c2809449373adb8cbad88aa9b
    https://github.com/scummvm/scummvm/commit/8e4f892ef9e6ad6c2809449373adb8cbad88aa9b
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-06-06T08:05:06+02:00

Commit Message:
GUI: Fixed negative index check

Changed paths:
    gui/ThemeEngine.cpp



diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index f093846..5e2bbb0 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -865,7 +865,7 @@ void ThemeEngine::queueDD(DrawData type, const Common::Rect &r, uint32 dynamic,
 void ThemeEngine::queueDDText(TextData type, TextColor color, const Common::Rect &r, const Common::String &text, bool restoreBg,
                               bool ellipsis, Graphics::TextAlign alignH, TextAlignVertical alignV, int deltax, const Common::Rect &drawableTextArea) {
 
-	if (type != kTextDataNone && _texts[type] == 0)
+	if (type != kTextDataNone || _texts[type] == 0)
 		return;
 
 	Common::Rect area = r;






More information about the Scummvm-git-logs mailing list