r24536 by jghali - #16497: Bad behavior of annotation "Y" field

scribus-commit scribus-commit at lists.scribus.net
Mon Mar 1 20:49:48 UTC 2021


Author: jghali
Date: Mon Mar  1 20:49:48 2021
New Revision: 24536

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24536
Log:
#16497: Bad behavior of annotation "Y" field

Modified:
    trunk/Scribus/scribus/ui/annota.cpp

Modified: trunk/Scribus/scribus/ui/annota.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24536&path=/trunk/Scribus/scribus/ui/annota.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/annota.cpp	(original)
+++ trunk/Scribus/scribus/ui/annota.cpp	Mon Mar  1 20:49:48 2021
@@ -56,7 +56,7 @@
 	m_width = static_cast<int>(m_doc->pageWidth());
 	m_height = static_cast<int>(m_doc->pageHeight());
 	m_oriWidth = static_cast<int>(m_doc->pageWidth());
-	m_oriHeight = static_cast<int>(m_doc->pageWidth());
+	m_oriHeight = static_cast<int>(m_doc->pageHeight());
 
 	QStringList tl;
 	if ((m_item->annotation().ActionType() == Annotation::Action_GoTo) || (m_item->annotation().ActionType() == Annotation::Action_GoToR_FileRel) || (m_item->annotation().ActionType() == Annotation::Action_GoToR_FileAbs))
@@ -67,7 +67,7 @@
 	else
 	{
 		tl.append("0");
-		tl.append("0");
+		tl.append(QString::number(m_height));
 	}
 
 	AnnotLayout = new QVBoxLayout( this );




More information about the scribus-commit mailing list