Skip to content

Commit

Permalink
Make add source apply locationBase
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Sep 24, 2024
1 parent bfc7ae2 commit 348af9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fontra/views/editor/panel-designspace-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand All @@ -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) {
Expand Down

0 comments on commit 348af9f

Please sign in to comment.