Skip to content

Commit

Permalink
Actually use calcBoardDimensions for sending width/height on upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Morgenstern authored and KjellMorgenstern committed Dec 12, 2023
1 parent 738e499 commit 7e32281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mainwindow/mainwindow_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4475,7 +4475,7 @@ void MainWindow::orderFab()
auto* manager = new QNetworkAccessManager();
int boardCount;
double width, height;
// m_pcbGraphicsView->calcBoardDimensions(boardCount, width, height);
m_pcbGraphicsView->calcBoardDimensions(boardCount, width, height);
FabUploadDialog upload(manager, m_fwFilename, width, height, boardCount, this);
upload.exec();
delete manager;
Expand Down
2 changes: 1 addition & 1 deletion src/sketch/pcbsketchwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class PCBSketchWidget : public SketchWidget
void setPartLabelFont(QString fontFamily);
QString getPartLabelFont();
void requestQuote();
void calcBoardDimensions(int & boardCount, double & width, double & height);

public Q_SLOTS:
void resizeBoard(double w, double h, bool doEmit);
Expand Down Expand Up @@ -182,7 +183,6 @@ public Q_SLOTS:
bool canConnect(Wire * from, ItemBase * to);
void collectThroughHole(QList<ConnectorItem *> & th, QList<ConnectorItem *> & pads, const LayerList &);
ViewLayer::ViewLayerPlacement getViewLayerPlacement(ModelPart *, QDomElement & instance, QDomElement & view, ViewGeometry &);
void calcBoardDimensions(int & boardCount, double & width, double & height);
PaletteItem* addPartItem(ModelPart * modelPart, ViewLayer::ViewLayerPlacement, PaletteItem * paletteItem, bool doConnectors, bool & ok, ViewLayer::ViewID, bool temporary);
double getKeepoutMils();
bool updateOK(ConnectorItem *, ConnectorItem *);
Expand Down

0 comments on commit 7e32281

Please sign in to comment.