]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
use rounding for bounding box since most of the time we will be close to the next...
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Jun 2005 17:19:28 +0000 (17:19 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Jun 2005 17:19:28 +0000 (17:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@10874 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index 1d23b06579e7efec3bb35383499eec05b3b900fb..281a45f02c1185d753e1c0666fad2a8b7514f359 100644 (file)
@@ -2394,9 +2394,9 @@ void DataOutBase::write_eps (const std::vector<Patch<dim,spacedim> > &patches,
                                               // lower left corner
                << "0 0 "
                                               // upper right corner
-               << static_cast<unsigned int>( (x_max-x_min) * scale )
+               << static_cast<unsigned int>( rint((x_max-x_min) * scale ))
                << ' '
-               << static_cast<unsigned int>( (y_max-y_min) * scale )
+               << static_cast<unsigned int>( rint((y_max-y_min) * scale ))
                << std::endl;
            
                                             // define some abbreviations to keep

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.