Skip to content

Commit

Permalink
Correctly handle the case that a parenthesis is empty.
Browse files Browse the repository at this point in the history
Resolves #1178
  • Loading branch information
gunterkoenigsmann committed Dec 6, 2019
1 parent 5e3314b commit 276f131
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/ParenCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ void ParenCell::Draw(wxPoint point)
wxString ParenCell::ToString()
{
wxString s;
if(!m_innerCell)
return "()";

if (!m_isBrokenIntoLines)
{
if (m_print)
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ bool MyApp::OnInit()
{
std::cout << "A feature-rich graphical user interface for the computer algebra system maxima\n";
std::cout << cmdLineParser.GetUsageString();
exit(wxMaxima::m_exitCode);
exit(0);
}

if(cmdLineError != 0)
Expand Down

0 comments on commit 276f131

Please sign in to comment.