From 7e32281522f90bb44ee66e4e706fd5ed75004de6 Mon Sep 17 00:00:00 2001 From: Kjell Morgenstern Date: Tue, 5 Dec 2023 17:04:50 +0100 Subject: [PATCH] Actually use calcBoardDimensions for sending width/height on upload. --- src/mainwindow/mainwindow_menu.cpp | 2 +- src/sketch/pcbsketchwidget.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainwindow/mainwindow_menu.cpp b/src/mainwindow/mainwindow_menu.cpp index ab427acec..a6d29ac1a 100644 --- a/src/mainwindow/mainwindow_menu.cpp +++ b/src/mainwindow/mainwindow_menu.cpp @@ -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; diff --git a/src/sketch/pcbsketchwidget.h b/src/sketch/pcbsketchwidget.h index 62a082e6b..f516c615a 100644 --- a/src/sketch/pcbsketchwidget.h +++ b/src/sketch/pcbsketchwidget.h @@ -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); @@ -182,7 +183,6 @@ public Q_SLOTS: bool canConnect(Wire * from, ItemBase * to); void collectThroughHole(QList & th, QList & 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 *);