View | Details | Raw Unified | Return to bug 213993 | Differences between
and this patch

Collapse All | Expand All

(-)kmplot/view.cpp (-6 / +6 lines)
Lines 477-483 QPointF View::toPixel( const QPointF & r Link Here
477
	double x = pixel.x();
477
	double x = pixel.x();
478
	double y = pixel.y();
478
	double y = pixel.y();
479
	
479
	
480
	if ( isnan(x) )
480
	if ( std::isnan(x) )
481
	{
481
	{
482
		xclipflg = true;
482
		xclipflg = true;
483
		x = pixelIfNaN.x();
483
		x = pixelIfNaN.x();
Lines 497-510 QPointF View::toPixel( const QPointF & r Link Here
497
	}
497
	}
498
	else
498
	else
499
	{
499
	{
500
		if ( isinf(x) == -1 )
500
		if ( std::isinf(x) == -1 )
501
			x = 0;
501
			x = 0;
502
			
502
			
503
		else if ( isinf(x) == 1 )
503
		else if ( std::isinf(x) == 1 )
504
			x = m_clipRect.right();
504
			x = m_clipRect.right();
505
	}
505
	}
506
	
506
	
507
	if ( isnan(y) )
507
	if ( std::isnan(y) )
508
	{
508
	{
509
		yclipflg = true;
509
		yclipflg = true;
510
		y = pixelIfNaN.y();
510
		y = pixelIfNaN.y();
Lines 524-533 QPointF View::toPixel( const QPointF & r Link Here
524
	}
524
	}
525
	else
525
	else
526
	{
526
	{
527
		if ( isinf(y) == -1 )
527
		if ( std::isinf(y) == -1 )
528
			y = 0;
528
			y = 0;
529
		
529
		
530
		else if ( isinf(y) == 1 )
530
		else if ( std::isinf(y) == 1 )
531
			y = m_clipRect.bottom();
531
			y = m_clipRect.bottom();
532
	}
532
	}
533
	
533
	

Return to bug 213993