From: Guido Kanschat Date: Thu, 16 Jun 2005 17:19:28 +0000 (+0000) Subject: use rounding for bounding box since most of the time we will be close to the next... X-Git-Tag: v8.0.0~13682 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95a423d08f0011947b27dd20f60a5dc3d838fe90;p=dealii.git use rounding for bounding box since most of the time we will be close to the next integer git-svn-id: https://svn.dealii.org/trunk@10874 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index 1d23b06579..281a45f02c 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -2394,9 +2394,9 @@ void DataOutBase::write_eps (const std::vector > &patches, // lower left corner << "0 0 " // upper right corner - << static_cast( (x_max-x_min) * scale ) + << static_cast( rint((x_max-x_min) * scale )) << ' ' - << static_cast( (y_max-y_min) * scale ) + << static_cast( rint((y_max-y_min) * scale )) << std::endl; // define some abbreviations to keep