Skip to content

Commit 276f131

Browse files
Correctly handle the case that a parenthesis is empty.
Resolves #1178
1 parent 5e3314b commit 276f131

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/ParenCell.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ void ParenCell::Draw(wxPoint point)
389389
wxString ParenCell::ToString()
390390
{
391391
wxString s;
392+
if(!m_innerCell)
393+
return "()";
394+
392395
if (!m_isBrokenIntoLines)
393396
{
394397
if (m_print)

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ bool MyApp::OnInit()
194194
{
195195
std::cout << "A feature-rich graphical user interface for the computer algebra system maxima\n";
196196
std::cout << cmdLineParser.GetUsageString();
197-
exit(wxMaxima::m_exitCode);
197+
exit(0);
198198
}
199199

200200
if(cmdLineError != 0)

0 commit comments

Comments
 (0)