Skip to content

Commit

Permalink
JXTextMenuTable: don't fail on empty item text
Browse files Browse the repository at this point in the history
  • Loading branch information
jafl committed May 29, 2024
1 parent 8fefc4a commit cb85b93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libjx/code/JXTextMenuTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ JXTextMenuTable::AdjustFont
JFont* font
)
{
if (colIndex == kTextColumnIndex)
if (colIndex == kTextColumnIndex && !text.IsEmpty())
{
// We don't perform the full character-by-character font
// substitution because menu items are translated, so they should
Expand Down
6 changes: 6 additions & 0 deletions todo
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ multi-pane editing

-----

Linux Window Manager
activate shifts window up & left
contents of medic Files window not adjusted to window size

medic
when kill program, doesn't clear current source line marker

gdb: doesn't show source line when hit first breakpoint

asm for function: if blank, fill in after program is stopped

jcc
Expand Down

0 comments on commit cb85b93

Please sign in to comment.