summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwin.cc1
-rw-r--r--src/primitives.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 2cd16be..fab0c74 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -1489,6 +1489,7 @@ void MainWindow::actionFlushCaches()
#endif
dxf_dim_cache.clear();
dxf_cross_cache.clear();
+ Module::libs_cache.clear();
}
void MainWindow::viewModeActionsUncheck()
diff --git a/src/primitives.cc b/src/primitives.cc
index 3f88c75..4210e15 100644
--- a/src/primitives.cc
+++ b/src/primitives.cc
@@ -474,7 +474,7 @@ sphere_next_r2:
}
}
- if (this->type == SQUARE)
+ if (this->type == SQUARE && x > 0 && y > 0)
{
double x1, x2, y1, y2;
if (this->center) {
contact: Jan Huwald // Impressum