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 Oct 4, 2024
1 parent 09f6326 commit 6eeef2e
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 6eeef2e

Please sign in to comment.