mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
Finish 1.6.2
This commit is contained in:
commit
95a11bdc14
@ -6,15 +6,13 @@ namespace LimeReport {
|
||||
|
||||
bool Segment::intersect(Segment value)
|
||||
{
|
||||
return ((value.m_end>=m_begin)&&(value.m_end<=m_end)) ||
|
||||
((value.m_begin>=m_begin)&&(value.m_end>=m_end)) ||
|
||||
((value.m_begin>=m_begin)&&(value.m_end<=m_end)) ||
|
||||
((value.m_begin<m_begin)&&(value.m_end>m_end)) ;
|
||||
return (value.m_begin <= m_end) && (value.m_end >= m_begin);
|
||||
}
|
||||
|
||||
qreal Segment::intersectValue(Segment value)
|
||||
{
|
||||
if ((value.m_end>=m_begin)&&(value.m_end<=m_end)){
|
||||
if (!intersect(value)) return 0;
|
||||
if ((value.m_end >= m_begin) && (value.m_end <= m_end)){
|
||||
return value.m_end-m_begin;
|
||||
}
|
||||
if ((value.m_begin>=m_begin)&&(value.m_end>=m_end)){
|
||||
|
@ -804,7 +804,6 @@ void PageItemDesignIntf::initPageSize(const PageItemDesignIntf::PageSize &size)
|
||||
m_sizeChainging = true;
|
||||
if (m_pageSize != Custom){
|
||||
QSizeF pageSize = getRectByPageSize(size);
|
||||
qDebug() << pageSize;
|
||||
setWidth(pageSize.width());
|
||||
setHeight(pageSize.height());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user