mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed YACReaderFlowGL::remove out of bounds crash
This commit is contained in:
parent
51cf77faca
commit
6874d95c5d
@ -710,6 +710,9 @@ void YACReaderFlowGL::insert(char *name, GLuint Tex, float x, float y,int item)
|
||||
|
||||
void YACReaderFlowGL::remove(int item)
|
||||
{
|
||||
if(item < 0 || item >= paths.size())
|
||||
return;
|
||||
|
||||
startAnimationTimer();
|
||||
|
||||
loaded.remove(item);
|
||||
@ -974,7 +977,7 @@ void YACReaderFlowGL::setMarks(QVector<YACReaderComicReadStatus> marks)
|
||||
void YACReaderFlowGL::setMarkImage(QImage & image)
|
||||
{
|
||||
Q_UNUSED(image);
|
||||
//qué pasa la primera vez??
|
||||
//qué pasa la primera vez??
|
||||
//deleteTexture(markTexture);
|
||||
//markTexture = bindTexture(image,GL_TEXTURE_2D,GL_RGBA,QGLContext::LinearFilteringBindOption | QGLContext::MipmapBindOption);
|
||||
}
|
||||
@ -993,7 +996,7 @@ void YACReaderFlowGL::unmarkSlide(int index)
|
||||
void YACReaderFlowGL::setSlideSize(QSize size)
|
||||
{
|
||||
Q_UNUSED(size);
|
||||
//TODO calcular el tamaño del widget
|
||||
//TODO calcular el tamaño del widget
|
||||
}
|
||||
void YACReaderFlowGL::clear()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user