Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 8ff27a6

Browse files
author
Fraser J. Gordon
committed
Merge branch 'refactor-syntax_unicode' of https://github.com/runrev/livecode into refactor-syntax_unicode
2 parents 868583b + a0d9d0b commit 8ff27a6

6 files changed

Lines changed: 14 additions & 6 deletions

File tree

docs/notes/bugfix-12477.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Native mobile controls created with mobGui do not seem to function under LiveCode 7.0

docs/notes/bugfix-12515.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# crash on clicking linktext (on second click)

engine/src/fieldh.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,11 @@ bool MCField::importparagraph(MCParagraph*& x_paragraphs, const MCFieldParagraph
739739
// SN-2014-04-25 [[ Bug 12177 ]] Importing HTML was creating parent-less paragraphs,
740740
// thus sometimes causing crashing when the parent was accessed - mainly when getfontattrs() was needed
741741
t_new_paragraph -> setparent(this);
742-
742+
743+
// AL-2014-05-28: [[ Bug 12515 ]] If inittext() is not called, the new paragraph
744+
// can have nil blocks when it contains an image.
745+
t_new_paragraph -> inittext();
746+
743747
if (p_style != nil)
744748
t_new_paragraph->importattrs(*p_style);
745749

engine/src/mblandroidmisc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ bool MCParseParameters(MCParameter*& p_parameters, const char *p_format, ...)
156156
MCAutoValueRef t_value;
157157
if (p_parameters != nil)
158158
{
159-
t_success = p_parameters -> eval(ctxt, &t_value);
159+
// AL-2014-05-28: [[ Bug 12477 ]] Use eval_argument here otherwise variable references do not get resolved
160+
t_success = p_parameters -> eval_argument(ctxt, &t_value);
160161
}
161162
else if (t_now_optional)
162163
break;

engine/src/mbliphonedialog.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,9 @@ static void dopopupaskdialog_postwait(void *p_context)
488488

489489
popupaskdialog_t ctxt;
490490
ctxt . type = p_type;
491-
ctxt . title = MCValueRetain(p_title);
492-
ctxt . message = MCValueRetain(p_message);
493-
ctxt . initial = MCValueRetain(p_initial);
491+
ctxt . title = MCValueRetain(p_title != nil ? p_title : kMCEmptyString);
492+
ctxt . message = MCValueRetain(p_message != nil ? p_message : kMCEmptyString);
493+
ctxt . initial = MCValueRetain(p_initial != nil ? p_initial : kMCEmptyString);
494494
ctxt . hint = p_hint;
495495

496496
MCIPhoneRunOnMainFiber(dopopupaskdialog_prewait, &ctxt);

engine/src/mbliphoneextra.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ bool MCParseParameters(MCParameter*& p_parameters, const char *p_format, ...)
9393
MCAutoValueRef t_value;
9494
if (p_parameters != nil)
9595
{
96-
t_success = p_parameters -> eval(ctxt, &t_value);
96+
// AL-2014-05-28: [[ Bug 12477 ]] Use eval_argument here otherwise variable references do not get resolved
97+
t_success = p_parameters -> eval_argument(ctxt, &t_value);
9798
}
9899
else if (t_now_optional)
99100
break;

0 commit comments

Comments
 (0)