All pastes #1952654 Raw Edit

Mine

public diff v1 · immutable
#1952654 ·published 2010-10-01 15:26 UTC
rendered paste body
From fd20b774bf057502ea04090051fad2c5c9351c74 Mon Sep 17 00:00:00 2001From: Andrei Karas <akaras@inbox.ru>Date: Fri, 1 Oct 2010 18:05:31 +0300Subject: [PATCH] Fix possible invisible chat.Reviewed-by: Thorbjorn--- src/gui/widgets/browserbox.cpp |    7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-)diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cppindex 6ae4c58..81f5421 100644--- a/src/gui/widgets/browserbox.cpp+++ b/src/gui/widgets/browserbox.cpp@@ -217,6 +217,7 @@ void BrowserBox::addRow(const std::string &row)     {         setHeight(font->getHeight() * static_cast<int>(mTextRows.size()));     }+    mUpdateTime = 0;     updateHeight(); } @@ -513,7 +514,7 @@ int BrowserBox::calcHeight()  void BrowserBox::updateHeight() {-    if (mAlwaysUpdate || std::abs(mUpdateTime - tick_time) > 10+    if (mAlwaysUpdate || !mUpdateTime || std::abs(mUpdateTime - tick_time) > 10         || mTextRows.size() < 3)     {         mWidth = getWidth();@@ -521,8 +522,4 @@ void BrowserBox::updateHeight()         setHeight(mHeight);         mUpdateTime = tick_time;     }-    else if (!mUpdateTime)-    {-        mUpdateTime = tick_time;-    } }-- 1.7.2.3