Skip to content

Commit

Permalink
Stop duplicating empty sample text
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Sep 1, 2023
1 parent b276ca3 commit 53e35a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/gftools/scripts/add_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _MakeMetadata(args, is_new):
metadata.display_name = old_metadata.display_name
if old_metadata.primary_script:
metadata.primary_script = old_metadata.primary_script
if old_metadata.sample_text:
if old_metadata.sample_text and old_metadata.sample_text.ByteSize():
metadata.sample_text.CopyFrom(old_metadata.sample_text)
if old_metadata.minisite_url:
metadata.minisite_url = old_metadata.minisite_url
Expand Down

0 comments on commit 53e35a2

Please sign in to comment.