diff options
-rw-r--r-- | chrome/browser/gtk/download_item_gtk.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/gtk/download_item_gtk.cc b/chrome/browser/gtk/download_item_gtk.cc index 5e49ff0..ca3984e 100644 --- a/chrome/browser/gtk/download_item_gtk.cc +++ b/chrome/browser/gtk/download_item_gtk.cc @@ -234,7 +234,9 @@ void DownloadItemGtk::AnimationProgressed(const Animation* animation) { // same as the width of the text. See above TODO for explanation of the // extra 50. int showing_width = std::max(kMinDownloadItemWidth, - (kTextWidth + 50) * new_item_animation_->GetCurrentValue()); + static_cast<int>((kTextWidth + 50) * + new_item_animation_->GetCurrentValue())); + showing_width = std::max(showing_width, kMinDownloadItemWidth); gtk_widget_set_size_request(body_, showing_width, -1); } |