mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*RasterPlayer: Avoid crash with Functions4U GetRect thanks to Mindtraveller
git-svn-id: svn://ultimatepp.org/upp/trunk@2686 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
90f395831b
commit
22b96c63dd
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue