Skip to content

Commit

Permalink
Remove unused offset calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Jan 21, 2021
1 parent 5b629c7 commit 19888e1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ngc_exporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,6 @@ void NGC_Exporter::export_all(boost::program_options::variables_map& options)
//set imperial/metric conversion factor for output coordinates depending on metricoutput option
cfactor = bMetricoutput ? 25.4 : 1;

if (options["zero-start"].as<bool>()) {
xoffset = board->get_bounding_box().min_corner().x();
yoffset = board->get_bounding_box().min_corner().y();
} else {
xoffset = 0;
yoffset = 0;
}
xoffset -= options["x-offset"].as<Length>().asInch(bMetricinput ? 1.0/25.4 : 1);
yoffset -= options["y-offset"].as<Length>().asInch(bMetricinput ? 1.0/25.4 : 1);

tileInfo = Tiling::generateTileInfo( options, board->get_height(), board->get_width() );

for ( string layername : board->list_layers() )
Expand Down

0 comments on commit 19888e1

Please sign in to comment.