From 22b96c63dd2e164b08f242f163123b28dfd7e4a4 Mon Sep 17 00:00:00 2001 From: koldo Date: Sat, 11 Sep 2010 19:40:50 +0000 Subject: [PATCH] *RasterPlayer: Avoid crash with Functions4U GetRect thanks to Mindtraveller git-svn-id: svn://ultimatepp.org/upp/trunk@2686 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/RasterPlayer/RasterPlayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/RasterPlayer/RasterPlayer.cpp b/uppsrc/RasterPlayer/RasterPlayer.cpp index f8a8dd0dd..00747b386 100644 --- a/uppsrc/RasterPlayer/RasterPlayer.cpp +++ b/uppsrc/RasterPlayer/RasterPlayer.cpp @@ -3,7 +3,7 @@ using namespace Upp; -Image GetRect(const Image& orig, const Rect &r) { +Image GetRect_(const Image& orig, const Rect &r) { if(r.IsEmpty()) return Image(); ImageBuffer ib(r.GetSize()); @@ -82,7 +82,7 @@ bool RasterPlayer::LoadBuffer(const String &buffer) { //case 2: iw.DrawRect(sz, White()); // It seems gif files do not comply with standard // break; case 4: if (i > 0) - previous = ::GetRect(images[i-1], r); + previous = ::GetRect_(images[i-1], r); iw.DrawRect(sz, White()); break; }