mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
fix put_BrushGradient
isUndefined didn't work
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
@ -1230,9 +1230,9 @@ void CGraphics::put_BrushTextureAlpha(int a)
|
||||
void CGraphics::put_BrushGradient(LONG* pColors, double* pPositions, size_t nCount, double x0, double y0, double x1, double y1, double r0, double r1)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
std::cout << "put_BrushGradient " << std::endl;
|
||||
std::cout << "put_BrushGradient " << x0 << " " << y0 << " " << x1 << " " << y1 << " " << r0 << " " << r1 << std::endl;
|
||||
#endif
|
||||
if(r0 < 0)
|
||||
if (std::isnan(r0))
|
||||
{
|
||||
// линейный
|
||||
double dX = x1 - x0, dY = y1 - y0;
|
||||
|
||||
Reference in New Issue
Block a user