From 708f792eccf458bdcede97bd4aee549c93e309e6 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 22 Sep 2008 17:57:31 +0000 Subject: [PATCH] In r16700 the name and meaning of that loop condition variable was flipped around, but the condition itself wasn't which resulted in the code never being executed. Fixes CID 88. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27692 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/translation/TranslationUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/translation/TranslationUtils.cpp b/src/kits/translation/TranslationUtils.cpp index 7fd29e19e2..dd8118c754 100644 --- a/src/kits/translation/TranslationUtils.cpp +++ b/src/kits/translation/TranslationUtils.cpp @@ -503,7 +503,7 @@ BTranslationUtils::PutStyledText(BTextView *fromView, BPositionIO *intoStream, // data to the stream. I've gathered all of the data that I // need at this point. bool ok = false; - while (ok) { + while (!ok) { const size_t kStreamHeaderSize = sizeof(TranslatorStyledTextStreamHeader); TranslatorStyledTextStreamHeader stm_header;