Skip to content

Commit ed8e400

Browse files
committed
Handle inf/minf in Copy for Octave/Matlab.
1 parent ee4f807 commit ed8e400

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cells/TextCell.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,10 @@ wxString TextCell::ToMatlab() const {
561561
text = wxS("i");
562562
else if (text == wxS("%pi"))
563563
text = wxString(wxS("pi"));
564+
else if (text == wxS("inf"))
565+
text = wxString(wxS("Inf"));
566+
else if (text == wxS("minf"))
567+
text = wxString(wxS("-Inf"));
564568
switch (GetTextStyle()) {
565569
case TS_VARIABLE:
566570
case TS_FUNCTION:

0 commit comments

Comments
 (0)