Skip to content

Commit

Permalink
fix(export,unreleased): fix malformed url crashes Inkscape when openi…
Browse files Browse the repository at this point in the history
…ng exported SVG
  • Loading branch information
MichaelMakesGames committed Sep 9, 2024
1 parent 5efb1c7 commit 32959de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/lib/map/CountryBorders.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@
{#each data.occupationBorders.filter((b) => b.occupied === border.countryId) as occupationBorder}
<path
d={occupationBorder.path}
fill="url(#pattern-${occupationBorder.partial
fill="url(#pattern-{occupationBorder.partial
? 'partial'
: 'full'}-occupation-{occupationBorder.occupier}-on-{occupationBorder.occupied}"
: 'full'}-occupation-{occupationBorder.occupier}-on-{occupationBorder.occupied})"
clip-path={`url(#border-${border.countryId}-inner-clip-path)`}
/>
{/each}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/lib/map/OccupationPatternDefs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

{#each data.occupationBorders as occupation}
<pattern
id="pattern-${occupation.partial
id="pattern-{occupation.partial
? 'partial'
: 'full'}-occupation-{occupation.occupier}-on-{occupation.occupied}"
viewBox="0,0,10,20"
Expand Down

0 comments on commit 32959de

Please sign in to comment.