From: guido 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05fe0838cbbe84071baba94de1e23f6d1ef26285;p=dealii-svn.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