We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 804dd78 commit be3a188Copy full SHA for be3a188
1 file changed
engine/src/block.cpp
@@ -38,6 +38,7 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
38
39
#include "exec-interface.h"
40
41
+#define IMAGE_BLOCK_LEADING 2
42
static MCRectangle
43
MCBlockMakeRectangle(double x, double y,
44
double width, double height)
@@ -1953,8 +1954,9 @@ coord_t MCBlock::GetDescent() const
1953
1954
1955
coord_t MCBlock::GetLeading() const
1956
{
1957
+ // PM-2016-02-15: [[ Bug 16754 ]] Use same value for leading as in pre-LC 8 when an image is present
1958
if (flags & F_HAS_IMAGE && atts->image != NULL)
- return GetAscent()+GetDescent();
1959
+ return IMAGE_BLOCK_LEADING;
1960
else
1961
return MCFontGetLeading(m_font);
1962
}
0 commit comments