CtrlCore: Fixed NOGTK issue

git-svn-id: svn://ultimatepp.org/upp/trunk@12397 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-10-23 08:03:33 +00:00
parent 71ca8e382d
commit fdcee073e2
3 changed files with 1 additions and 4 deletions

View file

@ -234,7 +234,6 @@ void AutoCrop(Image *m, int count, RGBA bg)
for(int i = 1; i < count; i++)
r.Union(FindBounds(m[i], bg));
for(int i = 0; i < count; i++) {
Rect rr = r.GetSize();
Point p1 = m[i].GetHotSpot() - r.TopLeft();
Point p2 = m[i].Get2ndSpot() - r.TopLeft();
m[i] = WithHotSpots(Crop(m[i], r), p1.x, p1.y, p2.x, p2.y);