Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 933462
Collapse All | Expand All

(-)a/scribus/scribusapp.cpp (-1 / +1 lines)
Lines 282-288 Link Here
282
		}
282
		}
283
		else
283
		else
284
		{ //argument is not a known option, but either positional parameter or invalid.
284
		{ //argument is not a known option, but either positional parameter or invalid.
285
			if (arg.at(0) == "-")
285
			if (arg.at(0) == '-')
286
			{
286
			{
287
				std::cout << tr("Invalid argument: %1").arg(arg).toLocal8Bit().data() << std::endl;
287
				std::cout << tr("Invalid argument: %1").arg(arg).toLocal8Bit().data() << std::endl;
288
				std::exit(EXIT_FAILURE);
288
				std::exit(EXIT_FAILURE);
(-)a/scribus/plugins/gettext/htmlim/htmlreader.cpp (-1 / +1 lines)
Lines 248-254 Link Here
248
		bool lcis = (chr.length() > 0 && chr[0].isSpace());
248
		bool lcis = (chr.length() > 0 && chr[0].isSpace());
249
		if (inPre)
249
		if (inPre)
250
		{
250
		{
251
			if (tmp.at(0) == '\n')
251
			if (tmp.at(0) == "\n")
252
				tmp = tmp.right(tmp.length() - 2);
252
				tmp = tmp.right(tmp.length() - 2);
253
		}
253
		}
254
		else
254
		else
(-)a/scribus/plugins/gettext/sxwim/stylereader.cpp (-4 / +4 lines)
Lines 274-284 Link Here
274
			currentStyle->getFont()->setHscale(static_cast<int>(getSize(attrValue, -1.0)));
274
			currentStyle->getFont()->setHscale(static_cast<int>(getSize(attrValue, -1.0)));
275
		else if ((attrName == "style:text-position") &&
275
		else if ((attrName == "style:text-position") &&
276
				 ((attrValue.indexOf("sub") != -1) ||
276
				 ((attrValue.indexOf("sub") != -1) ||
277
				  ((attrValue.at(0) == "-") && (attrValue.at(0) != "0"))))
277
				  ((attrValue.at(0) == '-') && (attrValue.at(0) != '0'))))
278
			currentStyle->getFont()->toggleEffect(SUBSCRIPT);
278
			currentStyle->getFont()->toggleEffect(SUBSCRIPT);
279
		else if ((attrName == "style:text-position") &&
279
		else if ((attrName == "style:text-position") &&
280
				 ((attrValue.indexOf("super") != -1) ||
280
				 ((attrValue.indexOf("super") != -1) ||
281
				  ((attrValue.at(0) != "-") && (attrValue.at(0) != "0"))))
281
				  ((attrValue.at(0) != '-') && (attrValue.at(0) != '0'))))
282
			currentStyle->getFont()->toggleEffect(SUPERSCRIPT);
282
			currentStyle->getFont()->toggleEffect(SUPERSCRIPT);
283
		else if ((attrName == "fo:margin-top") && (pstyle != nullptr))
283
		else if ((attrName == "fo:margin-top") && (pstyle != nullptr))
284
			pstyle->setSpaceAbove(getSize(attrValue));
284
			pstyle->setSpaceAbove(getSize(attrValue));
Lines 652-662 Link Here
652
		style->getFont()->setHscale(static_cast<int>(getSize(value, -1.0)));
652
		style->getFont()->setHscale(static_cast<int>(getSize(value, -1.0)));
653
	else if ((key == "style:text-position") &&
653
	else if ((key == "style:text-position") &&
654
			 ((value.indexOf("sub") != -1) ||
654
			 ((value.indexOf("sub") != -1) ||
655
			  ((value.at(0) == "-") && (value.at(0) != "0"))))
655
			  ((value.at(0) == '-') && (value.at(0) != '0'))))
656
		style->getFont()->toggleEffect(SUBSCRIPT);
656
		style->getFont()->toggleEffect(SUBSCRIPT);
657
	else if ((key == "style:text-position") &&
657
	else if ((key == "style:text-position") &&
658
			 ((value.indexOf("super") != -1) ||
658
			 ((value.indexOf("super") != -1) ||
659
			  ((value.at(0) != "-") && (value.at(0) != "0"))))
659
			  ((value.at(0) != '-') && (value.at(0) != '0'))))
660
		style->getFont()->toggleEffect(SUPERSCRIPT);
660
		style->getFont()->toggleEffect(SUPERSCRIPT);
661
	else if ((key == "fo:margin-top") && (pstyle != nullptr))
661
	else if ((key == "fo:margin-top") && (pstyle != nullptr))
662
		pstyle->setSpaceAbove(getSize(value));
662
		pstyle->setSpaceAbove(getSize(value));

Return to bug 933462