From 5ea6ce1e07518c9580b2318644a4bd378015ce78 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Tue, 24 Sep 2024 09:01:58 +0200 Subject: [PATCH] Make add source apply locationBase --- src/fontra/views/editor/panel-designspace-navigation.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fontra/views/editor/panel-designspace-navigation.js b/src/fontra/views/editor/panel-designspace-navigation.js index 57de5608dd..f9225497aa 100644 --- a/src/fontra/views/editor/panel-designspace-navigation.js +++ b/src/fontra/views/editor/panel-designspace-navigation.js @@ -834,6 +834,8 @@ export default class DesignspaceNavigationPanel extends Panel { return; } + const filteredLocation = stripLocation(newLocation, locationBase, glyph); + const getGlyphFunc = this.sceneController.sceneModel.fontController.getGlyph.bind( this.sceneController.sceneModel.fontController ); @@ -849,7 +851,8 @@ export default class DesignspaceNavigationPanel extends Panel { GlyphSource.fromObject({ name: sourceName, layerName: layerName, - location: newLocation, + location: filteredLocation, + locationBase: locationBase, }) ); if (layerNames.indexOf(layerName) < 0) {