summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/download_item_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-13 23:57:12 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-13 23:57:12 +0000
commit86a34e3780dd47205bcf6b4757724cf0f61f6dc2 (patch)
treee8ceb5b71d3ccfb7dd5b5b08eee071f66b39cbff /chrome/browser/views/download_item_view.cc
parent04185d956254a3b506f1315b9659a734396c1a7f (diff)
downloadchromium_src-86a34e3780dd47205bcf6b4757724cf0f61f6dc2.zip
chromium_src-86a34e3780dd47205bcf6b4757724cf0f61f6dc2.tar.gz
chromium_src-86a34e3780dd47205bcf6b4757724cf0f61f6dc2.tar.bz2
Fix crash in saving pages.
http://crbug.com/3393 Review URL: http://codereview.chromium.org/7285 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3331 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/download_item_view.cc')
-rw-r--r--chrome/browser/views/download_item_view.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/views/download_item_view.cc b/chrome/browser/views/download_item_view.cc
index 6d0af1e3..0da72f0 100644
--- a/chrome/browser/views/download_item_view.cc
+++ b/chrome/browser/views/download_item_view.cc
@@ -478,6 +478,7 @@ void DownloadItemView::Paint(ChromeCanvas* canvas) {
download_->PercentComplete(),
download_util::SMALL);
} else if (download_->state() == DownloadItem::COMPLETE &&
+ complete_animation_.get() &&
complete_animation_->IsAnimating()) {
download_util::PaintDownloadComplete(canvas, this, 0, 0,
complete_animation_->GetCurrentValue(),