Fix use of bitwise and instead of logical one.
This commit is contained in:
parent
ad53372253
commit
3d8d737aaf
|
@ -690,10 +690,10 @@ namespace Anabatic {
|
||||||
bool Vertex::isH () const
|
bool Vertex::isH () const
|
||||||
{
|
{
|
||||||
GCell* gcell = getGCell();
|
GCell* gcell = getGCell();
|
||||||
if (gcell->isDevice()) return isiHorizontal();
|
if ( gcell->isDevice()) return isiHorizontal();
|
||||||
else if ((gcell->isHChannel())||(gcell->isHRail())) return true;
|
else if ((gcell->isHChannel()) or (gcell->isHRail())) return true;
|
||||||
else if (gcell->isStrut()| gcell->isMatrix() ) return ((gcell->getWidth() > gcell->getHeight())||(gcell->getWidth() == gcell->getHeight()));
|
else if ( gcell->isStrut() or gcell->isMatrix()) return ((gcell->getWidth() > gcell->getHeight())||(gcell->getWidth() == gcell->getHeight()));
|
||||||
else return false;
|
else return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue