mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59422 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
5879d8b3d4
commit
b262b13a66
@ -22,14 +22,6 @@
|
||||
#include "agg_array.h"
|
||||
#include "agg_trans_affine.h"
|
||||
|
||||
#ifndef max
|
||||
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
namespace agg
|
||||
{
|
||||
#if !defined(_LINUX) && !defined(WIN32)
|
||||
@ -421,7 +413,9 @@ namespace agg
|
||||
m_center.x = (bounds.x1 + bounds.x2) / 2;
|
||||
m_center.y = (bounds.y1 + bounds.y2) / 2;
|
||||
|
||||
double dmax = max(abs(bounds.x1 - bounds.x2), abs(bounds.y1 - bounds.y2));
|
||||
double dmax = (abs(bounds.x1 - bounds.x2));
|
||||
if (dmax < abs(bounds.y1 - bounds.y2))
|
||||
dmax = abs(bounds.y1 - bounds.y2);
|
||||
m_factor = 0;
|
||||
|
||||
if (dmax > FLT_EPSILON)
|
||||
|
||||
Reference in New Issue
Block a user